Auto-generated from the oblikovati.org/api/client Go source. Do not edit here.
client
import "oblikovati.org/api/client"
Package client is the typed automation client add-ins use to drive a running Oblikovati host. It marshals oblikovati.org/api/wire DTOs onto a caller-supplied [Transport] (the add-in backs it with the host's C-ABI ObkHostCall — see include/oblikovati_addin.h) and unmarshals the replies.
This is the out-of-runtime path: an add-in links only the Apache-2.0 /api module and never the GPL implementation, so a closed-source add-in stays decoupled from /source both legally and at the ABI (the only thing crossing the boundary is JSON, per ADR-0016).
Index
- func AddFeature[A featureargs.Arg](f Features, a A) (json.RawMessage, error)
- func PanelButton(id, text, commandID string) wire.PanelControlSpec
- func PanelCheckBox(id, text string, checked bool) wire.PanelControlSpec
- func PanelComboBox(id, text string, options []string, value string) wire.PanelControlSpec
- func PanelDropdown(id, text string, options []string, selected string) wire.PanelControlSpec
- func PanelGrid(id string, columns []types.GridTrack, colGap, rowGap float64, children ...wire.PanelControlSpec) wire.PanelControlSpec
- func PanelGroup(id, title string, children ...wire.PanelControlSpec) wire.PanelControlSpec
- func PanelLabel(id, text string) wire.PanelControlSpec
- func PanelReferenceList(id, text string, accepts []string, rows []wire.PanelReferenceRow) wire.PanelControlSpec
- func PanelSeparator() wire.PanelControlSpec
- func PanelSlider(id, text string, value, min, max, step float64) wire.PanelControlSpec
- func PanelTab(title string, content ...wire.PanelControlSpec) wire.PanelControlSpec
- func PanelTabs(id string, panes ...wire.PanelControlSpec) wire.PanelControlSpec
- func PanelTextBox(id, text, value string) wire.PanelControlSpec
- func PanelValueEditor(id, text, value string) wire.PanelControlSpec
- func PlaceAt(control wire.PanelControlSpec, col, colSpan int) wire.PanelControlSpec
- func TrackAuto() types.GridTrack
- func TrackFixed(px float64) types.GridTrack
- func TrackFr(weight float64) types.GridTrack
- func TrackMinMax(base types.GridTrack, minPx, maxPx float64) types.GridTrack
- type AddIns
- func (a AddIns) Activate(id string) (wire.OKResult, error)
- func (a AddIns) CallAutomation(id, method string, args json.RawMessage) (json.RawMessage, error)
- func (a AddIns) Deactivate(id string) (wire.OKResult, error)
- func (a AddIns) Get(id string) (wire.AddInInfo, error)
- func (a AddIns) List() (wire.ListAddInsResult, error)
- func (a AddIns) SetLoadBehavior(id string, b types.AddInLoadBehavior) (wire.OKResult, error)
- type Analysis
- type Appearances
- func (a Appearances) Assign(args wire.AssignAppearanceArgs) (wire.OKResult, error)
- func (a Appearances) Create(args wire.DuplicateAssetArgs) (wire.AppearanceInfo, error)
- func (a Appearances) Get(id string) (wire.AppearanceInfo, error)
- func (a Appearances) List() (wire.ListAppearancesResult, error)
- func (a Appearances) Update(info wire.AppearanceInfo) (wire.AppearanceInfo, error)
- type Application
- type Assembly
- func (a Assembly) BOMExport(args wire.BOMExportArgs) (wire.BOMExportResult, error)
- func (a Assembly) BOMView(view types.BOMViewKind) (wire.BOMViewResult, error)
- func (a Assembly) Copy(sources ...uint64) (wire.NewOccurrencesResult, error)
- func (a Assembly) DeriveBreakLink(id uint64) (wire.FeatureDetailResult, error)
- func (a Assembly) DeriveCreate(source uint64) (wire.FeatureDetailResult, error)
- func (a Assembly) DeriveStatus(id uint64) (wire.DeriveStatusResult, error)
- func (a Assembly) DeriveUpdate(id uint64) (wire.DeriveStatusResult, error)
- func (a Assembly) Ground(id uint64, grounded bool) (wire.OccurrenceResult, error)
- func (a Assembly) Mirror(args wire.MirrorComponentsArgs) (wire.NewOccurrencesResult, error)
- func (a Assembly) MirrorIntoPart(args wire.MirrorIntoPartArgs) (wire.NewOccurrencesResult, error)
- func (a Assembly) Occurrences() (wire.OccurrencesResult, error)
- func (a Assembly) PatternCreate(args wire.CreatePatternArgs) (wire.NewOccurrencesResult, error)
- func (a Assembly) Place(args wire.PlaceOccurrenceArgs) (wire.OccurrenceResult, error)
- func (a Assembly) PlaceByDefinition(args wire.PlaceByDefinitionArgs) (wire.OccurrenceResult, error)
- func (a Assembly) PlaceByDefinitionBatch(args wire.PlaceByDefinitionBatchArgs) (wire.PlaceByDefinitionBatchResult, error)
- func (a Assembly) Remove(id uint64) (wire.OccurrencesResult, error)
- func (a Assembly) Replace(id, document uint64) (wire.OccurrenceResult, error)
- func (a Assembly) SetFlexible(id uint64, flexible bool) (wire.OccurrenceResult, error)
- func (a Assembly) SetFlexibleChild(args wire.SetFlexibleChildArgs) (wire.OccurrenceResult, error)
- func (a Assembly) ShrinkwrapCreate(args wire.ShrinkwrapCreateArgs) (wire.FeatureDetailResult, error)
- func (a Assembly) Substitute(args wire.SubstituteComponentsArgs) (wire.OccurrenceResult, error)
- func (a Assembly) Suppress(id uint64, suppressed bool) (wire.OccurrenceResult, error)
- func (a Assembly) Transform(args wire.TransformOccurrenceArgs) (wire.OccurrenceResult, error)
- type AssemblyConstraints
- func (a AssemblyConstraints) AddAngle(args wire.AddAngleArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddCustom(args wire.AddCustomArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddFlush(args wire.AddFlushArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddInsert(args wire.AddInsertArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddMate(args wire.AddMateArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddRotateRotate(args wire.AddRotateRotateArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddRotateTranslate(args wire.AddRotateTranslateArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddSymmetry(args wire.AddSymmetryArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddTangent(args wire.AddTangentArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddTransitional(args wire.AddTransitionalArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) AddTranslateTranslate(args wire.AddTranslateTranslateArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) Delete(id uint64) (wire.ConstraintsResult, error)
- func (a AssemblyConstraints) Health() (wire.AssemblyHealthResult, error)
- func (a AssemblyConstraints) List() (wire.ConstraintsResult, error)
- func (a AssemblyConstraints) SetLimits(args wire.SetConstraintLimitsArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) Snap(args wire.SnapConstraintArgs) (wire.ConstraintResult, error)
- func (a AssemblyConstraints) Solve() (wire.AssemblyHealthResult, error)
- type AssemblyDrive
- type AssemblyFeatures
- func (a AssemblyFeatures) Add(args wire.AddAssemblyFeatureArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddChamfer(args wire.AddAssemblyChamferArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddExtrude(args wire.AddAssemblyExtrudeArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddFillet(args wire.AddAssemblyFilletArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddHole(args wire.AddAssemblyHoleArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddMoveFace(args wire.AddAssemblyMoveFaceArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddProxyCut(source uint64, operation string) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddRevolve(args wire.AddAssemblyRevolveArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) AddSweep(args wire.AddAssemblySweepArgs) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) Edit(id uint64, scalars []wire.ScalarEdit) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) GetEndOfFeatures() (wire.EndOfFeaturesResult, error)
- func (a AssemblyFeatures) List() (wire.AssemblyFeaturesResult, error)
- func (a AssemblyFeatures) SetEndOfFeatures(position int) (wire.AssemblyFeaturesResult, error)
- func (a AssemblyFeatures) SetParticipantPaths(id uint64, paths [][]string) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) SetParticipants(id uint64, participants []uint64) (wire.AssemblyFeatureResult, error)
- func (a AssemblyFeatures) SetSuppressed(ids []uint64, suppressed bool) (wire.AssemblyFeaturesResult, error)
- type AssemblyJoints
- func (a AssemblyJoints) AddBall(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) AddCylindrical(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) AddPlanar(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) AddRigid(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) AddRotational(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) AddSlider(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) Delete(id uint64) (wire.AssemblyJointsResult, error)
- func (a AssemblyJoints) List() (wire.AssemblyJointsResult, error)
- func (a AssemblyJoints) SetFlip(id uint64, flip bool) (wire.AssemblyJointResult, error)
- func (a AssemblyJoints) SetLimits(args wire.SetJointLimitsArgs) (wire.AssemblyJointResult, error)
- type Attributes
- func (a Attributes) Delete(document uint64, set, name string) (wire.DeleteAttributeResult, error)
- func (a Attributes) DeleteOn(document uint64, target, set, name string) (wire.DeleteAttributeResult, error)
- func (a Attributes) Find(set, name string) (wire.FindByAttributeResult, error)
- func (a Attributes) Get(document uint64, set, name string) (wire.AttributeResult, error)
- func (a Attributes) GetOn(document uint64, target, set, name string) (wire.AttributeResult, error)
- func (a Attributes) List(document uint64, set string) (wire.ListAttributesResult, error)
- func (a Attributes) ListAll(document uint64, set string) (wire.ListAttributesResult, error)
- func (a Attributes) ListOn(document uint64, target, set string) (wire.ListAttributesResult, error)
- func (a Attributes) ListSets(document uint64) (wire.ListAttributeSetsResult, error)
- func (a Attributes) Set(document uint64, set, name string, value types.Variant) (wire.AttributeResult, error)
- func (a Attributes) SetOn(document uint64, target, set, name string, value types.Variant) (wire.AttributeResult, error)
- type Body
- func (b Body) BindTransientKey(bodyIndex int, transientKey uint64) (wire.BindTransientKeyResult, error)
- func (b Body) CalculateFacets(args wire.CalculateFacetsArgs) (wire.FacetSetResult, error)
- func (b Body) CalculateStrokes(bodyIndex int, tolerance float64) (wire.StrokeSetResult, error)
- func (b Body) ConvexityEdges(bodyIndex int, collection types.EdgeCollectionKind) (wire.ConvexityEdgesResult, error)
- func (b Body) Delete(index int) (wire.BodyListResult, error)
- func (b Body) ExistingFacets(bodyIndex int, tolerance float64) (wire.FacetSetResult, error)
- func (b Body) ExistingStrokes(bodyIndex int, tolerance float64) (wire.StrokeSetResult, error)
- func (b Body) FaceCalculateFacets(args wire.FaceFacetsArgs) (wire.FacetSetResult, error)
- func (b Body) FaceCalculateStrokes(args wire.FaceFacetsArgs) (wire.StrokeSetResult, error)
- func (b Body) FaceEvaluate(args wire.FaceEvaluateArgs) (wire.FaceEvaluateResult, error)
- func (b Body) FacetTolerances(bodyIndex int) (wire.FacetTolerancesResult, error)
- func (b Body) FindUsingRay(args wire.FindUsingRayArgs) (wire.FindUsingRayResult, error)
- func (b Body) IsPointInside(args wire.IsPointInsideArgs) (types.Containment, error)
- func (b Body) List() (wire.BodyListResult, error)
- func (b Body) LocateUsingPoint(bodyIndex int, point []float64, entityKind string, proximityTolerance float64) (wire.LocateUsingPointResult, error)
- func (b Body) MinimumDistance(args wire.MinimumDistanceArgs) (wire.MinimumDistanceResult, error)
- func (b Body) OffsetPlanarWire(args wire.OffsetPlanarWireArgs, closure types.OffsetCornerClosureType) (wire.OffsetPlanarWireResult, error)
- func (b Body) PhysicalProperties(index int, densityGCm3 float64, accuracy string) (wire.MassPropertiesResult, error)
- func (b Body) RangeBox(args wire.BodyRangeBoxArgs) (wire.BodyRangeBoxResult, error)
- func (b Body) Rename(index int, name string) (wire.BodyInfoResult, error)
- func (b Body) SetVisible(index int, visible bool) (wire.BodyInfoResult, error)
- func (b Body) Shells(bodyIndex int) (wire.BodyShellsResult, error)
- func (b Body) StrokeTolerances(bodyIndex int) (wire.FacetTolerancesResult, error)
- func (b Body) Validate(bodyIndex, checkLevel int) (wire.ValidateBodyResult, error)
- func (b Body) Wires(bodyIndex int) (wire.BodyWiresResult, error)
- type Browser
- type Caller
- type Client
- func New(t Caller) *Client
- func (c *Client) AddIns() AddIns
- func (c *Client) Analysis() Analysis
- func (c *Client) Appearances() Appearances
- func (c *Client) Application() Application
- func (c *Client) Assembly() Assembly
- func (c *Client) AssemblyConstraints() AssemblyConstraints
- func (c *Client) AssemblyDrive() AssemblyDrive
- func (c *Client) AssemblyFeatures() AssemblyFeatures
- func (c *Client) AssemblyJoints() AssemblyJoints
- func (c *Client) Attributes() Attributes
- func (c *Client) Body() Body
- func (c *Client) Browser() Browser
- func (c *Client) ClientApplications() ClientApplications
- func (c *Client) ColorSchemes() ColorSchemes
- func (c *Client) Commands() Commands
- func (c *Client) ContactSets() ContactSets
- func (c *Client) ContactSolver() ContactSolver
- func (c *Client) DSJoints() DSJoints
- func (c *Client) DesignReps() DesignReps
- func (c *Client) Diagnostics() Diagnostics
- func (c *Client) Dialogs() Dialogs
- func (c *Client) Display() Display
- func (c *Client) DockableWindows() DockableWindows
- func (c *Client) Documents() Documents
- func (c *Client) Drawing() Drawing
- func (c *Client) DrawingAnnotations() DrawingAnnotations
- func (c *Client) DrawingDimensions() DrawingDimensions
- func (c *Client) DrawingSketches() DrawingSketches
- func (c *Client) DrawingStyles() DrawingStyles
- func (c *Client) DrawingViews() DrawingViews
- func (c *Client) Environment() Environment
- func (c *Client) ExportDXF(args wire.ExportDXFArgs) (wire.ExportDXFResult, error)
- func (c *Client) Features() Features
- func (c *Client) Files() Files
- func (c *Client) FlatPattern() FlatPattern
- func (c *Client) Fonts() Fonts
- func (c *Client) Freeform() Freeform
- func (c *Client) Graphics() Graphics
- func (c *Client) Help() Help
- func (c *Client) ImportDWG(args wire.ImportDWGArgs) (wire.ImportDWGResult, error)
- func (c *Client) ImportDXF(args wire.ImportDXFArgs) (wire.ImportDXFResult, error)
- func (c *Client) ImportPDF(args wire.ImportPDFArgs) (wire.ImportPDFResult, error)
- func (c *Client) Interaction() Interaction
- func (c *Client) Interference() Interference
- func (c *Client) Keymap() Keymap
- func (c *Client) LODReps() LODReps
- func (c *Client) Lighting() Lighting
- func (c *Client) Manipulators() Manipulators
- func (c *Client) Materials() Materials
- func (c *Client) Messages() Messages
- func (c *Client) MiniToolbars() MiniToolbars
- func (c *Client) Model() Model
- func (c *Client) ModelStates() ModelStates
- func (c *Client) Options() Options
- func (c *Client) Parameters() Parameters
- func (c *Client) PointClouds() PointClouds
- func (c *Client) PositionalReps() PositionalReps
- func (c *Client) Progress() Progress
- func (c *Client) Ribbon() Ribbon
- func (c *Client) Scripts() Scripts
- func (c *Client) SheetMetal() SheetMetal
- func (c *Client) Sketch() Sketch
- func (c *Client) Sketch3D() Sketch3D
- func (c *Client) Status() Status
- func (c *Client) Styles() Styles
- func (c *Client) TaskPanels() TaskPanels
- func (c *Client) Theme() Theme
- func (c *Client) Threads() Threads
- func (c *Client) Transactions() Transactions
- func (c *Client) TransientBRep() TransientBRep
- func (c *Client) Triad() Triad
- func (c *Client) UI() UI
- func (c *Client) Units() Units
- func (c *Client) View() View
- func (c *Client) Views() Views
- func (c *Client) Windows() Windows
- func (c *Client) WorkPlanes() WorkPlanes
- func (c *Client) WorkPoints() WorkPoints
- func (c *Client) WorkSurfaces() WorkSurfaces
- type ClientApplications
- type ColorSchemes
- type Commands
- func (cm Commands) Create(args wire.CreateCommandArgs) (wire.OKResult, error)
- func (cm Commands) Execute(id string) (wire.OKResult, error)
- func (cm Commands) List() (wire.ListCommandsResult, error)
- func (cm Commands) SetState(args wire.SetCommandStateArgs) (wire.OKResult, error)
- func (cm Commands) SubmitLine(line string) (wire.CommandLineResult, error)
- type Constrain
- func (g Constrain) Add(kind types.GeometricConstraintKind, entities ...uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Coincident(p1, p2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Collinear(l1, l2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Concentric(c1, c2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Delete(constraintIndex int) (wire.OKResult, error)
- func (g Constrain) EqualLength(l1, l2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) EqualRadius(c1, c2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Fix(point uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Ground(entity uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Horizontal(p1, p2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Midpoint(point, line uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Offset(line1, line2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Parallel(l1, l2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) PatternLink(seed, member uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Perpendicular(l1, l2 uint64) (wire.AddConstraintResult, error)
- func (g Constrain) PointOnCircle(point, curve uint64) (wire.AddConstraintResult, error)
- func (g Constrain) PointOnLine(point, line uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Symmetric(a, b, mirrorLine uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Tangent(line, curve uint64) (wire.AddConstraintResult, error)
- func (g Constrain) Vertical(p1, p2 uint64) (wire.AddConstraintResult, error)
- type ContactSets
- func (cs ContactSets) AddMember(args wire.ContactMemberArgs) (wire.ContactSetResult, error)
- func (cs ContactSets) Create(name string) (wire.ContactSetResult, error)
- func (cs ContactSets) Delete(id uint64) (wire.ContactSetsResult, error)
- func (cs ContactSets) List() (wire.ContactSetsResult, error)
- func (cs ContactSets) RemoveMember(args wire.ContactMemberArgs) (wire.ContactSetResult, error)
- type ContactSolver
- type DSJoints
- type DesignReps
- func (d DesignReps) Activate(id uint64) (wire.DesignViewResult, error)
- func (d DesignReps) AddSection(args wire.AddSectionArgs) (wire.DesignViewResult, error)
- func (d DesignReps) Capture(name string) (wire.DesignViewResult, error)
- func (d DesignReps) Delete(id uint64) (wire.DesignViewsResult, error)
- func (d DesignReps) List() (wire.DesignViewsResult, error)
- func (d DesignReps) SetAppearance(args wire.SetAppearanceArgs) (wire.DesignViewResult, error)
- func (d DesignReps) SetVisibility(args wire.SetVisibilityArgs) (wire.DesignViewResult, error)
- type Diagnostics
- type Dialogs
- type Dimension
- func (g Dimension) Add(kind types.DimensionConstraintKind, expression string, entities ...uint64) (wire.AddDimensionResult, error)
- func (g Dimension) Angle(l1, l2 uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) ArcLength(arc uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) Diameter(circle uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) Distance(p1, p2 uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) Drive(dimensionIndex int, expression string) (wire.OKResult, error)
- func (g Dimension) EllipseRadius(ellipse uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) Offset(point, line uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) Radius(circle uint64, expression string) (wire.AddDimensionResult, error)
- func (g Dimension) SetDriven(dimensionIndex int, driven bool) (wire.OKResult, error)
- func (g Dimension) SetLimits(dimensionIndex int, min, max float64) (wire.OKResult, error)
- func (g Dimension) ThreePointAngle(vertex, a, b uint64, expression string) (wire.AddDimensionResult, error)
- type Display
- func (d Display) Options() (wire.DisplayModeOptionsView, error)
- func (d Display) SetOptions(v wire.DisplayModeOptionsView) (wire.DisplayModeOptionsView, error)
- func (d Display) SetSettings(v wire.DisplaySettingsView) (wire.DisplaySettingsView, error)
- func (d Display) Settings() (wire.DisplaySettingsView, error)
- type DockableWindows
- func (d DockableWindows) Delete(id string) (wire.OKResult, error)
- func (d DockableWindows) List() (wire.ListDockableWindowsResult, error)
- func (d DockableWindows) Set(w wire.DockableWindowSpec) (wire.OKResult, error)
- func (d DockableWindows) SetReferences(windowID, controlID string, refs []string) (wire.OKResult, error)
- func (d DockableWindows) SetValue(windowID, controlID, value string) (wire.OKResult, error)
- func (d DockableWindows) SetVisible(id string, visible bool) (wire.OKResult, error)
- type Documents
- func (d Documents) Activate(id uint64) (wire.OKResult, error)
- func (d Documents) AddAttachment(args wire.AddAttachmentArgs) (wire.AttachmentInfo, error)
- func (d Documents) AddInterest(id uint64, record types.DocumentInterestRecord) (wire.OKResult, error)
- func (d Documents) Attachments(id uint64) (wire.ListAttachmentsResult, error)
- func (d Documents) BatchSave(args wire.BatchSaveArgs) (wire.BatchSaveResult, error)
- func (d Documents) Close(id uint64, force bool) (wire.CloseDocumentsResult, error)
- func (d Documents) CloseAll(force bool) (wire.CloseDocumentsResult, error)
- func (d Documents) Create(args wire.CreateDocumentArgs) (wire.DocumentInfo, error)
- func (d Documents) Export(req wire.ExportRequest) (wire.ExportResponse, error)
- func (d Documents) FileReferences(id uint64) (wire.ListDocumentFileReferencesResult, error)
- func (d Documents) GetEndOfPart() (wire.EndOfPartResult, error)
- func (d Documents) GetProperty(id uint64, set, name string) (wire.PropertyResult, error)
- func (d Documents) GetSketchSettings(id uint64) (wire.SketchSettingsResult, error)
- func (d Documents) GetUnits() (wire.DocumentUnitsInfo, error)
- func (d Documents) HasInterest(id uint64, client string) (wire.HasDocumentInterestResult, error)
- func (d Documents) Import(req wire.ImportRequest) (wire.ImportResponse, error)
- func (d Documents) Interests(id uint64) (wire.ListDocumentInterestsResult, error)
- func (d Documents) List() (wire.ListDocumentsResult, error)
- func (d Documents) ListProperties(id uint64) (wire.ListPropertiesResult, error)
- func (d Documents) Open(args wire.OpenDocumentArgs) (wire.DocumentInfo, error)
- func (d Documents) Rebuild(acceptErrorsAndContinue bool) (wire.UpdateDocumentResult, error)
- func (d Documents) RegisterSubType(args wire.RegisterDocumentSubTypeArgs) (wire.OKResult, error)
- func (d Documents) RemoveAttachment(id uint64, name string) (wire.OKResult, error)
- func (d Documents) RemoveInterest(id uint64, clientID, name string) (wire.OKResult, error)
- func (d Documents) RequiresUpdate() (wire.RequiresUpdateResult, error)
- func (d Documents) Save(id uint64) (wire.SaveDocumentResult, error)
- func (d Documents) SaveAs(id uint64, newFullDocumentName string) (wire.SaveDocumentResult, error)
- func (d Documents) SaveCopyAs(args wire.SaveCopyAsArgs) (wire.SaveDocumentResult, error)
- func (d Documents) SetEndOfPart(position int) (wire.EndOfPartResult, error)
- func (d Documents) SetProperty(id uint64, set, name string, value types.Variant) (wire.PropertyResult, error)
- func (d Documents) SetSketchSettings(id uint64, settings types.SketchSettings) (wire.SketchSettingsResult, error)
- func (d Documents) SetUnits(args wire.SetDocumentUnitsArgs) (wire.DocumentUnitsInfo, error)
- func (d Documents) SubTypes() (wire.ListDocumentSubTypesResult, error)
- func (d Documents) Update(acceptErrorsAndContinue bool) (wire.UpdateDocumentResult, error)
- type Drawing
- func (d Drawing) AddSheet(args wire.AddSheetArgs) (wire.SheetResult, error)
- func (d Drawing) ExportDXF(args wire.ExportDrawingDXFArgs) (wire.ExportDrawingDXFResult, error)
- func (d Drawing) ListSheets() (wire.ListSheetsResult, error)
- func (d Drawing) RemoveSheet(args wire.RemoveSheetArgs) (wire.ListSheetsResult, error)
- func (d Drawing) SetActiveSheet(args wire.SetActiveSheetArgs) (wire.SheetResult, error)
- func (d Drawing) SetModelReference(args wire.SetModelReferenceArgs) (wire.SetModelReferenceResult, error)
- func (d Drawing) TitleBlockFields(args wire.TitleBlockFieldsArgs) (wire.TitleBlockFieldsResult, error)
- type DrawingAnnotations
- func (d DrawingAnnotations) AddBalloon(args wire.AddBalloonArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddCenterMarks(args wire.AddCenterMarksArgs) (wire.CenterMarksResult, error)
- func (d DrawingAnnotations) AddCenterlines(args wire.AddCenterlinesArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddCoGMarker(args wire.AddCoGMarkerArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddCustomTable(args wire.AddCustomTableArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddDatumFeature(args wire.AddDatumFeatureArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddFeatureControlFrame(args wire.AddFeatureControlFrameArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddHoleNotes(args wire.AddHoleNotesArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddHoleTable(args wire.AddHoleTableArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddNote(args wire.AddDrawingNoteArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddPartsList(args wire.AddPartsListArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddRevisionCloud(args wire.AddRevisionCloudArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddRevisionTable(args wire.AddRevisionTableArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddRevisionTag(args wire.AddRevisionTagArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) AddSurfaceTexture(args wire.AddSurfaceTextureArgs) (wire.AnnotationResult, error)
- func (d DrawingAnnotations) Delete(args wire.DeleteAnnotationArgs) (wire.ListDrawingAnnotationsResult, error)
- func (d DrawingAnnotations) List() (wire.ListDrawingAnnotationsResult, error)
- type DrawingDimensions
- func (d DrawingDimensions) AddAngular(args wire.AddAngularDimensionArgs) (wire.DimensionResult, error)
- func (d DrawingDimensions) AddArcLength(args wire.AddArcLengthDimensionArgs) (wire.DimensionResult, error)
- func (d DrawingDimensions) AddBaseline(args wire.AddDimensionSetArgs) (wire.DimensionSetResult, error)
- func (d DrawingDimensions) AddChain(args wire.AddDimensionSetArgs) (wire.DimensionSetResult, error)
- func (d DrawingDimensions) AddLinear(args wire.AddLinearDimensionArgs) (wire.DimensionResult, error)
- func (d DrawingDimensions) AddOrdinate(args wire.AddOrdinateDimensionsArgs) (wire.DimensionSetResult, error)
- func (d DrawingDimensions) AddRadial(args wire.AddRadialDimensionArgs) (wire.DimensionResult, error)
- func (d DrawingDimensions) Delete(args wire.DeleteDimensionArgs) (wire.ListDrawingDimensionsResult, error)
- func (d DrawingDimensions) List() (wire.ListDrawingDimensionsResult, error)
- type DrawingSketches
- func (d DrawingSketches) Add(args wire.AddDrawingSketchArgs) (wire.DrawingSketchResult, error)
- func (d DrawingSketches) AddEntity(args wire.AddDrawingSketchEntityArgs) (wire.DrawingSketchResult, error)
- func (d DrawingSketches) AddHatchRegion(args wire.AddHatchRegionArgs) (wire.DrawingSketchResult, error)
- func (d DrawingSketches) List() (wire.ListDrawingSketchesResult, error)
- type DrawingStyles
- type DrawingViews
- func (d DrawingViews) AddAuxiliary(args wire.AddAuxiliaryViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddBase(args wire.AddBaseViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddBreak(args wire.AddBreakViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddBreakout(args wire.AddBreakoutViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddDetail(args wire.AddDetailViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddDraft(args wire.AddDraftViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddProjected(args wire.AddProjectedViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddSection(args wire.AddSectionViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) AddSlice(args wire.AddSliceViewArgs) (wire.ViewResult, error)
- func (d DrawingViews) Curves(args wire.ViewCurvesArgs) (wire.ViewCurvesResult, error)
- func (d DrawingViews) Delete(args wire.DeleteViewArgs) (wire.ListDrawingViewsResult, error)
- func (d DrawingViews) List() (wire.ListDrawingViewsResult, error)
- type EllipticalArc
- type EllipticalArc3D
- type Environment
- type EventDispatcher
- func NewEventDispatcher() *EventDispatcher
- func (d *EventDispatcher) Dispatch(eventJSON []byte) bool
- func (d *EventDispatcher) OnAssemblyFeatures(fn func(wire.AssemblyFeaturesChangedEvent))
- func (d *EventDispatcher) OnFeature(fn func(wire.FeatureLifecycleEvent))
- func (d *EventDispatcher) OnFileDialogHook(fn func(wire.FileDialogHookPayload))
- func (d *EventDispatcher) OnFileDirty(fn func(wire.FileDirtyEventPayload))
- func (d *EventDispatcher) OnFileResolution(fn func(wire.FileResolutionEventPayload))
- func (d *EventDispatcher) OnObjectRenamed(fn func(wire.ObjectRenamedEvent))
- func (d *EventDispatcher) OnOccurrence(fn func(wire.OccurrenceEventPayload))
- func (d *EventDispatcher) OnPropertyChanged(fn func(wire.PropertyChangedEvent))
- func (d *EventDispatcher) OnSketchEdit(fn func(wire.SketchEditEvent))
- func (d *EventDispatcher) OnTransaction(fn func(wire.TransactionEventPayload))
- type Features
- func (f Features) Add(args wire.AddFeatureArgs) (json.RawMessage, error)
- func (f Features) Delete(id uint64) (wire.DeleteFeatureResult, error)
- func (f Features) Edit(args wire.EditFeatureArgs) (wire.FeatureDetailResult, error)
- func (f Features) Get(id uint64) (wire.FeatureDetailResult, error)
- func (f Features) List() (wire.ListFeatureKindsResult, error)
- func (f Features) MirrorFeatures(args wire.MirrorFeatureArgs) (json.RawMessage, error)
- func (f Features) PatternCircular(args wire.CircularPatternFeatureArgs) (json.RawMessage, error)
- func (f Features) PatternRectangular(args wire.RectangularPatternFeatureArgs) (json.RawMessage, error)
- func (f Features) Rename(id uint64, name string) (wire.FeatureDetailResult, error)
- func (f Features) Reorder(id uint64, newIndex int) (wire.FeatureDetailResult, error)
- func (f Features) SetSuppressed(id uint64, suppressed bool) (wire.FeatureDetailResult, error)
- type Files
- type FlatPattern
- func (f FlatPattern) ActivateOrientation(args wire.ActivateOrientationArgs) (wire.OrientationResult, error)
- func (f FlatPattern) AddCenterline(args wire.AddCenterlineArgs) (wire.CenterlinesResult, error)
- func (f FlatPattern) AddOrientation(args wire.AddOrientationArgs) (wire.OrientationResult, error)
- func (f FlatPattern) DeleteCenterline(args wire.DeleteCenterlineArgs) (wire.CenterlinesResult, error)
- func (f FlatPattern) DeleteOrientation(args wire.DeleteOrientationArgs) (wire.OrientationsResult, error)
- func (f FlatPattern) EdgesOfType(args wire.EdgesOfTypeArgs) (wire.EdgesResult, error)
- func (f FlatPattern) Faces() (wire.FacesResult, error)
- func (f FlatPattern) GetSettings() (wire.SettingsResult, error)
- func (f FlatPattern) ListBendOrder() (wire.BendOrderResult, error)
- func (f FlatPattern) ListCenterlines() (wire.CenterlinesResult, error)
- func (f FlatPattern) ListOrientations() (wire.OrientationsResult, error)
- func (f FlatPattern) ListPlates() (wire.PlatesResult, error)
- func (f FlatPattern) MapEntity(args wire.MapEntityArgs) (wire.MapEntityResult, error)
- func (f FlatPattern) SetBendOrder(args wire.SetBendOrderArgs) (wire.BendOrderResult, error)
- func (f FlatPattern) SetSettings(args wire.SetSettingsArgs) (wire.SettingsResult, error)
- type Fonts
- type Freeform
- type Graphics
- func (g Graphics) AddBodyOverlay(clientID, bodyKey string, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddFloodPlot(clientID string, coords []float64, indices []int, scalars []float64, mapper wire.GraphicsColorMapper, opacity float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddHeatmap(clientID string, coords []float64, indices []int, scalars []float64, mapper wire.GraphicsColorMapper) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddImage(clientID, imagePath string, anchor []float64, width, height float64) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddLabel(clientID, text string, anchor []float64, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddLines(clientID string, coords []float64, indices []int, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddMesh(clientID string, coords []float64, indices []int, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddPoints(clientID string, coords []float64, style types.GraphicsPointStyle, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) AddStripMesh(clientID string, coords []float64, color []float32) (wire.SetClientGraphicsResult, error)
- func (g Graphics) ColorMappers() (wire.ColorMappersResult, error)
- func (g Graphics) Delete(clientID string) error
- func (g Graphics) Interaction() InteractionGraphics
- func (g Graphics) List() (wire.ListClientGraphicsResult, error)
- func (g Graphics) RegisterColorMapper(name string, mapper wire.GraphicsColorMapper) error
- func (g Graphics) Set(args wire.SetClientGraphicsArgs) (wire.SetClientGraphicsResult, error)
- func (g Graphics) SetNodeSelectable(clientID, nodeID string, selectable bool) error
- func (g Graphics) SetNodeTransform(clientID, nodeID string, transform []float64) error
- func (g Graphics) SetNodeVisible(clientID, nodeID string, visible bool) error
- func (g Graphics) SetVisible(clientID string, visible bool) error
- type Help
- type Interaction
- type InteractionGraphics
- type Interference
- type Keymap
- func (k Keymap) Export() (wire.KeymapExport, error)
- func (k Keymap) Import(exp wire.KeymapExport) (wire.OKResult, error)
- func (k Keymap) List() (wire.ListBindingsResult, error)
- func (k Keymap) Reset(actionID types.ActionID) (wire.OKResult, error)
- func (k Keymap) ResetAll() (wire.OKResult, error)
- func (k Keymap) SetAlias(actionID types.ActionID, alias string) (wire.OKResult, error)
- func (k Keymap) SetChord(actionID types.ActionID, chord types.KeyChord) (wire.OKResult, error)
- type LODReps
- func (l LODReps) Activate(id uint64) (wire.LODResult, error)
- func (l LODReps) Capture(name string) (wire.LODResult, error)
- func (l LODReps) Delete(id uint64) (wire.LODsResult, error)
- func (l LODReps) List() (wire.LODsResult, error)
- func (l LODReps) SetSuppressed(args wire.SetSuppressedArgs) (wire.LODResult, error)
- type Lighting
- func (l Lighting) AddLight(def types.LightDefinitionTypeEnum) (wire.LightInfo, error)
- func (l Lighting) Lights() (wire.LightListResult, error)
- func (l Lighting) ListStyles() (wire.LightingStyleListResult, error)
- func (l Lighting) SetLight(index int, light wire.LightInfo) (wire.LightInfo, error)
- func (l Lighting) SetStyle(name string) (wire.LightingStyleView, error)
- func (l Lighting) Style() (wire.LightingStyleView, error)
- type Manipulators
- type Materials
- func (m Materials) Assign(args wire.AssignMaterialArgs) (wire.OKResult, error)
- func (m Materials) Create(args wire.DuplicateAssetArgs) (wire.MaterialInfo, error)
- func (m Materials) Get(id string) (wire.MaterialInfo, error)
- func (m Materials) List() (wire.ListMaterialsResult, error)
- func (m Materials) PhysicalProperties() (types.PhysicalProperties, error)
- func (m Materials) Update(info wire.MaterialInfo) (wire.MaterialInfo, error)
- type Messages
- func (m Messages) AddMessage(args wire.AddErrorMessageArgs) (wire.OKResult, error)
- func (m Messages) BeginSection(title string) (wire.BeginMessageSectionResult, error)
- func (m Messages) Clear() (wire.OKResult, error)
- func (m Messages) EndSection(section int) (wire.OKResult, error)
- func (m Messages) List() (wire.ListErrorsResult, error)
- func (m Messages) RegisterBalloonTip(args wire.RegisterBalloonTipArgs) (wire.OKResult, error)
- func (m Messages) Show() (wire.OKResult, error)
- func (m Messages) ShowBalloonTip(id string) (wire.ShowBalloonTipResult, error)
- func (m Messages) ShowPrompt(args wire.ShowPromptArgs) (wire.ShowPromptResult, error)
- type MiniToolbars
- func (m MiniToolbars) List() (wire.ListMiniToolbarsResult, error)
- func (m MiniToolbars) Remove(id string) (wire.OKResult, error)
- func (m MiniToolbars) Set(tb wire.MiniToolbarSpec) (wire.OKResult, error)
- func (m MiniToolbars) Update(id string, controls []wire.MiniToolbarControlSpec) (wire.OKResult, error)
- type Model
- func (m Model) AddHighlightItems(name string, refs []string) (wire.HighlightSetInfo, error)
- func (m Model) ClearSelection() (wire.SelectionResult, error)
- func (m Model) CreateHighlightSet(name, color string) (wire.HighlightSetInfo, error)
- func (m Model) DeleteHighlightSet(name string) (wire.OKResult, error)
- func (m Model) Deselect(refs []string) (wire.SelectionResult, error)
- func (m Model) HighlightSets() (wire.ListHighlightSetsResult, error)
- func (m Model) ReferenceKeys() (wire.ReferenceKeysResult, error)
- func (m Model) Select(refs []string, mode string) (wire.SelectionResult, error)
- func (m Model) Selection() (wire.SelectionResult, error)
- func (m Model) SetHighlightSetColor(name, color string) (wire.HighlightSetInfo, error)
- func (m Model) Tree() (wire.ModelTreeResult, error)
- type ModelStates
- type NameValueMap
- func (m *NameValueMap) Clear()
- func (m *NameValueMap) Count() int
- func (m *NameValueMap) Entries() wire.NameValueMap
- func (m *NameValueMap) Insert(name string, value types.Variant, targetIndex int, before bool) error
- func (m *NameValueMap) MarshalJSON() ([]byte, error)
- func (m *NameValueMap) NameAt(index int) (string, error)
- func (m *NameValueMap) Names() []string
- func (m *NameValueMap) Remove(name string) bool
- func (m *NameValueMap) Set(name string, value types.Variant)
- func (m *NameValueMap) UnmarshalJSON(b []byte) error
- func (m *NameValueMap) Value(name string) (types.Variant, bool)
- func (m *NameValueMap) ValueAt(index int) (types.Variant, error)
- type ObjectCollection
- func (c *ObjectCollection) Add(ref types.ObjectRef)
- func (c *ObjectCollection) At(index int) (types.ObjectRef, error)
- func (c *ObjectCollection) Clear()
- func (c *ObjectCollection) Count() int
- func (c *ObjectCollection) MarshalJSON() ([]byte, error)
- func (c *ObjectCollection) Refs() []types.ObjectRef
- func (c *ObjectCollection) RemoveAt(index int) error
- func (c *ObjectCollection) RemoveRef(ref types.ObjectRef) bool
- func (c *ObjectCollection) UnmarshalJSON(b []byte) error
- type ObjectCollectionByVariant
- func (c *ObjectCollectionByVariant) Add(key string, ref types.ObjectRef) error
- func (c *ObjectCollectionByVariant) At(index int) (types.ObjectRef, error)
- func (c *ObjectCollectionByVariant) ByKey(key string) (types.ObjectRef, bool)
- func (c *ObjectCollectionByVariant) Clear()
- func (c *ObjectCollectionByVariant) Count() int
- func (c *ObjectCollectionByVariant) Entries() wire.KeyedObjectRefList
- func (c *ObjectCollectionByVariant) KeyAt(index int) (string, error)
- func (c *ObjectCollectionByVariant) MarshalJSON() ([]byte, error)
- func (c *ObjectCollectionByVariant) Remove(key string) bool
- func (c *ObjectCollectionByVariant) RemoveAt(index int) error
- func (c *ObjectCollectionByVariant) UnmarshalJSON(b []byte) error
- type Options
- func (o Options) Display() (wire.DisplayOptionsView, error)
- func (o Options) General() (wire.GeneralOptionsView, error)
- func (o Options) Groups() (wire.ListOptionGroupsResult, error)
- func (o Options) Part() (wire.PartOptionsView, error)
- func (o Options) Save() (wire.SaveOptionsView, error)
- func (o Options) SetDisplay(v wire.DisplayOptionsView) (wire.OKResult, error)
- func (o Options) SetGeneral(v wire.GeneralOptionsView) (wire.OKResult, error)
- func (o Options) SetPart(v wire.PartOptionsView) (wire.OKResult, error)
- func (o Options) SetSave(v wire.SaveOptionsView) (wire.OKResult, error)
- func (o Options) SetSketch(v wire.SketchOptionsView) (wire.OKResult, error)
- func (o Options) Sketch() (wire.SketchOptionsView, error)
- type Parameters
- func (p Parameters) Add(args wire.ParameterSetArgs) (wire.ParameterInfo, error)
- func (p Parameters) AddDerivedTable(args wire.DerivedParameterTableAddArgs) (wire.DerivedParameterTableInfo, error)
- func (p Parameters) AddGroup(args wire.ParameterGroupAddArgs) (wire.ParameterGroupInfo, error)
- func (p Parameters) AddGroupMember(args wire.ParameterGroupMemberArgs) (wire.ParameterGroupInfo, error)
- func (p Parameters) Delete(name string) error
- func (p Parameters) DeleteDerivedTable(id int) error
- func (p Parameters) DeleteGroup(args wire.ParameterGroupDeleteArgs) error
- func (p Parameters) Dependents(name string) (wire.ParameterNamesResult, error)
- func (p Parameters) DrivenBy(name string) (wire.ParameterNamesResult, error)
- func (p Parameters) Export() (wire.ParameterExportResult, error)
- func (p Parameters) Get(name string) (wire.ParameterInfo, error)
- func (p Parameters) GetDetail(name string) (wire.ParameterDetail, error)
- func (p Parameters) GetSettings() (wire.ParameterSettingsInfo, error)
- func (p Parameters) Import(xml string) (wire.ParameterImportResult, error)
- func (p Parameters) List() (wire.ListParametersResult, error)
- func (p Parameters) ListDerivedTables() (wire.ListDerivedParameterTablesResult, error)
- func (p Parameters) ListGroups() (wire.ListParameterGroupsResult, error)
- func (p Parameters) RemoveGroupMember(args wire.ParameterGroupMemberArgs) (wire.ParameterGroupInfo, error)
- func (p Parameters) Set(args wire.ParameterSetArgs) (wire.ParameterInfo, error)
- func (p Parameters) SetAllModelValueType(modelValueType string) (wire.ParameterSweepResult, error)
- func (p Parameters) SetDerivedTableLinked(args wire.DerivedParameterTableSetLinkedArgs) (wire.DerivedParameterTableInfo, error)
- func (p Parameters) SetExpressionList(args wire.ParameterExpressionListArgs) (wire.ParameterDetail, error)
- func (p Parameters) SetGroupDisplayName(args wire.ParameterGroupDisplayNameArgs) (wire.ParameterGroupInfo, error)
- func (p Parameters) SetSettings(args wire.ParameterSettingsUpdateArgs) (wire.ParameterSettingsInfo, error)
- func (p Parameters) SetTolerance(args wire.ParameterToleranceArgs) (wire.ParameterDetail, error)
- func (p Parameters) Update(args wire.ParameterUpdateArgs) (wire.ParameterDetail, error)
- type Pattern
- type PointClouds
- func (p PointClouds) AddCrop(cloud string, min, max types.Point) (wire.PointCloudCropInfo, error)
- func (p PointClouds) Attach(name, fullFileName string) (wire.PointCloudInfo, error)
- func (p PointClouds) Delete(name string) (wire.DeletePointCloudResult, error)
- func (p PointClouds) DeleteCrop(cloud, crop string) (wire.DeletePointCloudCropResult, error)
- func (p PointClouds) FitPlane(cloud string) (wire.FitPointCloudPlaneResult, error)
- func (p PointClouds) FromModelSpace(name string, point types.Point) (wire.PointCloudSpaceResult, error)
- func (p PointClouds) Get(name string) (wire.PointCloudInfo, error)
- func (p PointClouds) List() (wire.ListPointCloudsResult, error)
- func (p PointClouds) ListCrops(cloud string) (wire.ListPointCloudCropsResult, error)
- func (p PointClouds) NearestPoint(cloud string, point types.Point) (wire.NearestPointResult, error)
- func (p PointClouds) SetCropActive(cloud, crop string, active bool) (wire.PointCloudCropInfo, error)
- func (p PointClouds) SetDensity(name string, maximumPointCount int) (wire.PointCloudInfo, error)
- func (p PointClouds) SetScale(name string, scale float64) (wire.PointCloudInfo, error)
- func (p PointClouds) SetTransform(name string, transform types.Matrix) (wire.PointCloudInfo, error)
- func (p PointClouds) SetVisible(name string, visible bool) (wire.PointCloudInfo, error)
- func (p PointClouds) ToModelSpace(name string, point types.Point) (wire.PointCloudSpaceResult, error)
- type PositionalReps
- func (p PositionalReps) Activate(id uint64) (wire.PositionalResult, error)
- func (p PositionalReps) Capture(name string) (wire.PositionalResult, error)
- func (p PositionalReps) Delete(id uint64) (wire.PositionalsResult, error)
- func (p PositionalReps) List() (wire.PositionalsResult, error)
- func (p PositionalReps) SetFlexible(args wire.SetFlexibleArgs) (wire.PositionalResult, error)
- func (p PositionalReps) SetOverride(args wire.SetPositionalOverrideArgs) (wire.PositionalResult, error)
- type Progress
- type Ribbon
- type Scripts
- type SheetMetal
- func (s SheetMetal) BendAllowance(args wire.BendAllowanceArgs) (wire.BendAllowanceResult, error)
- func (s SheetMetal) Bends() (wire.BendsResult, error)
- func (s SheetMetal) GetStyle() (wire.SheetMetalStyleResult, error)
- func (s SheetMetal) SetStyle(args wire.SetSheetMetalStyleArgs) (wire.SheetMetalStyleResult, error)
- func (s SheetMetal) Unfold() (wire.UnfoldResult, error)
- type Sketch
- func (s Sketch) AddArcByCenterStartEnd(index int, center, start, end []float64, ccw, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddArcByCenterStartEndExpr(index int, center, start, end []string, ccw, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddArcByThreePoints(index int, a, b, c []float64, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddBlockInstance(args wire.AddSketchBlockArgs) (wire.AddSketchBlockResult, error)
- func (s Sketch) AddChamfer(index int, line1, line2 uint64, d1, d2 string) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddCircleByCenterRadius(index int, center []float64, radius string, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddCircleByThreePoints(index int, a, b, c []float64, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddEllipse(index int, center, axis []float64, majorR, minorR string, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddEllipticalArc(index int, spec EllipticalArc) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddEntity(args wire.AddSketchEntityArgs) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddEquationCurve(index int, xExpr, yExpr string, t0, t1 float64) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddFillRegion(index int, seed []float64, style string) (wire.AddEntityIDResult, error)
- func (s Sketch) AddFillet(index int, line1, line2 uint64, radius string) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddFixedSpline(index int, points [][]float64) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddImage(index int, ref string, anchor []float64, width, height, rotation string, opacity float64) (wire.AddSketchImageResult, error)
- func (s Sketch) AddLine(index int, a, b []float64, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddLineExpr(index int, a, b []string, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddOffsetSpline(index int, parentSpline uint64, distance string) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddPoint(index int, p []float64) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddPointExpr(index int, p []string) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddPolygon(index int, center, through []float64, sides int, variant string, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddRectangle(index int, corner, opposite []float64, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddSlot(index int, c0, c1 []float64, width string, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddSpline(index int, variant string, points [][]float64, closed, construction bool) (wire.AddSketchEntityResult, error)
- func (s Sketch) AddText(index int, anchor []float64, text, height, rotation, justify string) (wire.AddEntityIDResult, error)
- func (s Sketch) AddTextWith(args wire.AddTextArgs) (wire.AddEntityIDResult, error)
- func (s Sketch) AutoDimension(index int) (wire.AutoDimensionResult, error)
- func (s Sketch) BlockDefinitions() (wire.ListBlockDefinitionsResult, error)
- func (s Sketch) BlockInstances(index int) (wire.ListBlockInstancesResult, error)
- func (s Sketch) Constrain(index int) Constrain
- func (s Sketch) ConstraintStatus(index int) (wire.ConstraintStatusResult, error)
- func (s Sketch) Constraints(index int) (wire.ListConstraintsResult, error)
- func (s Sketch) Copy(index int, entities []uint64, dx, dy float64) (wire.TransformSketchResult, error)
- func (s Sketch) CopyTo(args wire.CopySketchArgs) (wire.CopySketchResult, error)
- func (s Sketch) Create(args wire.CreateSketchArgs) (wire.CreateSketchResult, error)
- func (s Sketch) CreateBlockDefinition(args wire.CreateBlockDefinitionArgs) (wire.SketchBlockDefinitionInfo, error)
- func (s Sketch) Delete(index int) (wire.OKResult, error)
- func (s Sketch) DeleteBlockDefinition(name string) (wire.OKResult, error)
- func (s Sketch) Dependents(index int) (wire.SketchDependentsResult, error)
- func (s Sketch) Dimension(index int) Dimension
- func (s Sketch) Dimensions(index int) (wire.ListDimensionsResult, error)
- func (s Sketch) Edit(index int) (wire.EditSketchResult, error)
- func (s Sketch) EditText(args wire.EditTextArgs) (wire.SketchTextResult, error)
- func (s Sketch) Entities(index int) (wire.EnumerateEntitiesResult, error)
- func (s Sketch) ExitEdit(index int) (wire.EditSketchResult, error)
- func (s Sketch) Extend(index int, line uint64, pick []float64) (wire.TransformSketchResult, error)
- func (s Sketch) Get(index int) (wire.SketchInfo, error)
- func (s Sketch) GetCustomLineType(index int) (wire.SketchCustomLineTypeResult, error)
- func (s Sketch) GetText(index int, entity uint64) (wire.SketchTextResult, error)
- func (s Sketch) Include(index int, refs []string) (wire.ProjectGeometryResult, error)
- func (s Sketch) InferenceOptions() (wire.InferenceOptionsView, error)
- func (s Sketch) List() (wire.ListSketchesResult, error)
- func (s Sketch) Mirror(index int, entities []uint64, mirrorLine uint64) (wire.TransformSketchResult, error)
- func (s Sketch) Move(index int, entities []uint64, dx, dy float64) (wire.TransformSketchResult, error)
- func (s Sketch) Offset(index int, entity uint64, distance string) (wire.OffsetSketchResult, error)
- func (s Sketch) OffsetChain(index int, lines []uint64, distance string) (wire.OffsetSketchResult, error)
- func (s Sketch) Pattern(index int) Pattern
- func (s Sketch) Profiles(index int) (wire.ListProfilesResult, error)
- func (s Sketch) Project(index int, refs []string, mode string) (wire.ProjectGeometryResult, error)
- func (s Sketch) Rectangle(args wire.SketchRectangleArgs) (wire.SketchRectangleResult, error)
- func (s Sketch) ReferenceKey(index int) (wire.SketchReferenceKeyResult, error)
- func (s Sketch) RegionProperties(index, profileIndex int, accuracy types.Accuracy) (wire.RegionPropertiesResult, error)
- func (s Sketch) ResolveReference(key string) (wire.ResolveSketchReferenceResult, error)
- func (s Sketch) Rotate(index int, entities []uint64, center []float64, angle string) (wire.TransformSketchResult, error)
- func (s Sketch) SetColor(index int, color string) (wire.SketchInfo, error)
- func (s Sketch) SetCustomLineType(args wire.SetSketchCustomLineTypeArgs) (wire.SketchCustomLineTypeResult, error)
- func (s Sketch) SetDeferUpdates(index int, deferred bool) (wire.SketchInfo, error)
- func (s Sketch) SetInferenceOptions(view wire.InferenceOptionsView) (wire.InferenceOptionsView, error)
- func (s Sketch) SetLineType(index int, lineType types.SketchLineType) (wire.SketchInfo, error)
- func (s Sketch) SetLineWeight(index int, weight string) (wire.SketchInfo, error)
- func (s Sketch) SetName(index int, name string) (wire.SketchInfo, error)
- func (s Sketch) SetProperty(index int, property, value string) (wire.SketchInfo, error)
- func (s Sketch) SetSplineHandle(args wire.SetSplineHandleArgs) (wire.SplineHandleInfo, error)
- func (s Sketch) SetTextFont(args wire.SetTextFontArgs) (wire.SetTextFontResult, error)
- func (s Sketch) SetVisible(index int, visible bool) (wire.SketchInfo, error)
- func (s Sketch) Solve(index int) (wire.SolveSketchResult, error)
- func (s Sketch) Split(index int, line uint64, pick []float64) (wire.TransformSketchResult, error)
- func (s Sketch) Trim(index int, line uint64, pick []float64) (wire.TransformSketchResult, error)
- type Sketch3D
- func (s Sketch3D) AddArc(index int, center, start, end []float64, ccw, construction bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddCircle(index int, center, axis []float64, radius string, construction bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddConstraint(args wire.AddSketch3DConstraintArgs) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) AddDimension(args wire.AddSketch3DDimensionArgs) (wire.AddSketch3DDimensionResult, error)
- func (s Sketch3D) AddEllipse(index int, center, axis, majorAxis []float64, majorR, minorR string, construction bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddEllipticalArc(index int, spec EllipticalArc3D) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddEntity(args wire.AddSketch3DEntityArgs) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddEquationCurve(index int, xExpr, yExpr, zExpr string, t0, t1 float64) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddFixedSpline(index int, points [][]float64, closed bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddHelix(index int, origin, axis []float64, radius string, args wire.AddSketch3DEntityArgs) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddIntersectionCurve(index int, faceA, faceB string, grid wire.AddSketch3DSurfaceCurveArgs) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddLine(index int, a, b []float64, construction bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddOffsetCurve(index int, sourceEntityID uint64, distance float64, normal []float64) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddOnFaceCurve(index int, face string, uv []float64) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddPoint(index int, p []float64) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddProjectToSurfaceCurve(index int, sourceEntityID uint64, face string) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddSilhouetteCurve(index int, face string, viewDir []float64, grid wire.AddSketch3DSurfaceCurveArgs) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddSpline(index int, points [][]float64, closed, fit bool) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) AddSurfaceCurve(args wire.AddSketch3DSurfaceCurveArgs) (wire.AddSketch3DSurfaceCurveResult, error)
- func (s Sketch3D) AddVariableHelix(index int, origin, axis []float64, radius string, rows []wire.HelixShapeRow, args wire.AddSketch3DEntityArgs) (wire.AddSketch3DEntityResult, error)
- func (s Sketch3D) Coincident(index int, a, b uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) Collinear(index int, a, b, c uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) ConstraintStatus(index int) (wire.ConstraintStatusResult, error)
- func (s Sketch3D) Constraints(index int) (wire.ListConstraints3DResult, error)
- func (s Sketch3D) Copy(index int, entities []uint64, vector []float64) (wire.Transform3DResult, error)
- func (s Sketch3D) Create(args wire.CreateSketch3DArgs) (wire.CreateSketch3DResult, error)
- func (s Sketch3D) Delete(index int) (wire.OKResult, error)
- func (s Sketch3D) DeleteConstraint(index, constraintIndex int) (wire.OKResult, error)
- func (s Sketch3D) DeleteEntities(index int, entities []uint64) (wire.Transform3DResult, error)
- func (s Sketch3D) Dimensions(index int) (wire.ListDimensions3DResult, error)
- func (s Sketch3D) Distance(index int, a, b uint64, value string) (wire.AddSketch3DDimensionResult, error)
- func (s Sketch3D) DriveDimension(args wire.DriveSketch3DDimensionArgs) (wire.OKResult, error)
- func (s Sketch3D) Edit(index int) (wire.EditSketch3DResult, error)
- func (s Sketch3D) EditHelixDefinition(args wire.EditHelixArgs) (wire.HelixDefinitionView, error)
- func (s Sketch3D) Entities(index int) (wire.EnumerateEntities3DResult, error)
- func (s Sketch3D) ExitEdit(index int) (wire.EditSketch3DResult, error)
- func (s Sketch3D) Get(index int) (wire.Sketch3DInfo, error)
- func (s Sketch3D) Ground(index int, point uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) Include(index int, refs []string) (wire.IncludeSketch3DResult, error)
- func (s Sketch3D) IncludeSketch(index, sourceIndex int, entityIDs []uint64) (wire.IncludeSketch3DResult, error)
- func (s Sketch3D) LineLength(index int, line uint64, value string) (wire.AddSketch3DDimensionResult, error)
- func (s Sketch3D) List() (wire.ListSketches3DResult, error)
- func (s Sketch3D) Midpoint(index int, point, line uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) Move(index int, entities []uint64, vector []float64) (wire.Transform3DResult, error)
- func (s Sketch3D) Parallel(index int, l1, l2 uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) ParallelToAxis(index int, line uint64, kind types.Geometric3DConstraintKind) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) Paths(index int) (wire.ListPaths3DResult, error)
- func (s Sketch3D) Perpendicular(index int, l1, l2 uint64) (wire.AddSketch3DConstraintResult, error)
- func (s Sketch3D) PointPlaneDistance(index int, point uint64, plane, value string) (wire.AddSketch3DDimensionResult, error)
- func (s Sketch3D) Profiles(index int) (wire.ListProfiles3DResult, error)
- func (s Sketch3D) Radius(index int, circle uint64, value string) (wire.AddSketch3DDimensionResult, error)
- func (s Sketch3D) ReferenceKey(index int) (wire.SketchReferenceKeyResult, error)
- func (s Sketch3D) RegionProperties(index, profileIndex int, accuracy types.Accuracy) (wire.RegionPropertiesResult, error)
- func (s Sketch3D) Rotate(index int, entities []uint64, center, axis []float64, angle string) (wire.Transform3DResult, error)
- func (s Sketch3D) SetColor(index int, color string) (wire.Sketch3DInfo, error)
- func (s Sketch3D) SetDeferUpdates(index int, deferred bool) (wire.Sketch3DInfo, error)
- func (s Sketch3D) SetDimensionsVisible(index int, visible bool) (wire.Sketch3DInfo, error)
- func (s Sketch3D) SetName(index int, name string) (wire.Sketch3DInfo, error)
- func (s Sketch3D) SetProperty(index int, property, value string) (wire.Sketch3DInfo, error)
- func (s Sketch3D) SetSplineHandle(args wire.SetSplineHandleArgs) (wire.SplineHandleInfo, error)
- func (s Sketch3D) SetVisible(index int, visible bool) (wire.Sketch3DInfo, error)
- func (s Sketch3D) Solve(index int) (wire.SolveSketch3DResult, error)
- func (s Sketch3D) Transform(args wire.Transform3DArgs) (wire.Transform3DResult, error)
- func (s Sketch3D) TwoLineAngle(index int, l1, l2 uint64, value string) (wire.AddSketch3DDimensionResult, error)
- type Status
- type Styles
- func (s Styles) Delete(name string) (wire.OKResult, error)
- func (s Styles) Get(name string) (wire.ColorStyleView, error)
- func (s Styles) ImportLibrary(path string) (wire.StyleLibrariesResult, error)
- func (s Styles) Libraries() (wire.StyleLibrariesResult, error)
- func (s Styles) List() (wire.ColorStylesResult, error)
- func (s Styles) Set(v wire.ColorStyleView) (wire.ColorStyleView, error)
- type TaskPanels
- type Theme
- type Threads
- type Transactions
- func (t Transactions) Abort() (wire.UndoState, error)
- func (t Transactions) Begin(label string) (wire.OKResult, error)
- func (t Transactions) End() (wire.UndoState, error)
- func (t Transactions) History(document uint64) (wire.TransactionHistory, error)
- func (t Transactions) JumpTo(document uint64, position int) (wire.TransactionHistory, error)
- func (t Transactions) Redo() (wire.UndoState, error)
- func (t Transactions) State() (wire.UndoState, error)
- func (t Transactions) Undo() (wire.UndoState, error)
- type TransientBRep
- func (t TransientBRep) Copy(source wire.BrepBodyRef) (wire.BrepHandleResult, error)
- func (t TransientBRep) CreateFromDefinition(def types.BrepBodyDefinition) (wire.BrepCreateFromDefinitionResult, error)
- func (t TransientBRep) CreateIntersectionWithPlane(source wire.BrepBodyRef, planeOrigin, planeNormal []float64) (wire.BrepWiresResult, error)
- func (t TransientBRep) CreatePrimitive(args wire.CreatePrimitiveArgs) (wire.BrepHandleResult, error)
- func (t TransientBRep) CreateRuledSurface(sectionOne, sectionTwo wire.BrepWireRef) (wire.BrepHandleResult, error)
- func (t TransientBRep) CreateSilhouetteCurve(args wire.BrepSilhouetteArgs) (wire.BrepWiresResult, error)
- func (t TransientBRep) Delete(handle int) error
- func (t TransientBRep) DeleteFaces(handle int, faceKeys []string, keepInstead bool) (wire.BrepHandleResult, error)
- func (t TransientBRep) Describe(handle int) (wire.BrepHandleResult, error)
- func (t TransientBRep) DoBoolean(blankHandle int, tool wire.BrepBodyRef, op types.BooleanType) (wire.BrepHandleResult, error)
- func (t TransientBRep) GetIdenticalBodies(args wire.BrepIdenticalBodiesArgs) (wire.BrepIdenticalBodiesResult, error)
- func (t TransientBRep) ImprintBodies(args wire.BrepImprintArgs) (wire.BrepImprintResult, error)
- func (t TransientBRep) List() (wire.BrepListResult, error)
- func (t TransientBRep) OffsetFaces(args wire.BrepOffsetFacesArgs) (wire.BrepHandleResult, error)
- func (t TransientBRep) Transform(handle int, matrix []float64) (wire.BrepHandleResult, error)
- type TransientObjects
- type Triad
- type UI
- func (u UI) ActivateEnvironment(env types.Environment) (wire.OKResult, error)
- func (u UI) MarkingMenu(env types.Environment) (wire.MarkingMenuView, error)
- func (u UI) ObjectVisibility() (wire.ObjectVisibilityView, error)
- func (u UI) RegisterEnvironment(env types.Environment, name string) (wire.OKResult, error)
- func (u UI) Search(query string) (wire.SearchCommandsResult, error)
- func (u UI) SetContextMenu(addin, kind string, items []wire.ContextMenuItemSpec) (wire.OKResult, error)
- func (u UI) SetMarkingMenu(menu wire.MarkingMenuView) (wire.OKResult, error)
- func (u UI) SetObjectVisibility(v wire.ObjectVisibilityView) (wire.OKResult, error)
- type Units
- func (u Units) CompatibleUnits(expression, unitsType string) (wire.CompatibleUnitsResult, error)
- func (u Units) Convert(args wire.ConvertUnitsArgs) (wire.ConvertUnitsResult, error)
- func (u Units) GetDatabaseUnitsFromExpression(expression string) (wire.DatabaseUnitsResult, error)
- func (u Units) GetDrivingParameters(expression string) (wire.DrivingParametersResult, error)
- func (u Units) GetLocaleCorrectedExpression(expression string) (wire.StringResult, error)
- func (u Units) GetPreciseStringFromValue(value float64, unitsType string) (wire.StringResult, error)
- func (u Units) GetStringFromType(unitsType string) (wire.StringResult, error)
- func (u Units) GetStringFromValue(value float64, unitsType string) (wire.StringResult, error)
- func (u Units) GetTypeFromString(unitString string) (wire.UnitsTypeResult, error)
- func (u Units) GetValueFromExpression(expression, unitsType string) (wire.ValueResult, error)
- func (u Units) IsExpressionValid(expression, unitsType string) (wire.ExpressionValidResult, error)
- type View
- func (v View) Camera() (wire.CameraView, error)
- func (v View) Capture(a wire.CaptureViewportArgs) (wire.CaptureViewportResult, error)
- func (v View) CaptureWindow(a wire.CaptureWindowArgs) (wire.CaptureWindowResult, error)
- func (v View) DisplayMode() (wire.DisplayModeView, error)
- func (v View) ListDisplayModes() (wire.ListDisplayModesResult, error)
- func (v View) SetCamera(a wire.SetCameraArgs) (wire.CameraView, error)
- func (v View) SetDisplayMode(mode types.DisplayModeEnum) (wire.DisplayModeView, error)
- func (v View) SetMeshColors(a wire.SetMeshColorsArgs) (wire.MeshColorsResult, error)
- func (v View) SetNormalDebug(a wire.SetNormalDebugArgs) (wire.NormalDebugResult, error)
- func (v View) SetOrientation(a wire.SetOrientationArgs) (wire.CameraView, error)
- func (v View) SetShadows(s wire.ShadowSettings) (wire.ShadowSettings, error)
- func (v View) Shadows() (wire.ShadowSettings, error)
- type Views
- func (v Views) Activate(args wire.ActivateViewArgs) (wire.ListViewsResult, error)
- func (v Views) Add(args wire.AddViewArgs) (wire.ViewInfo, error)
- func (v Views) CaptureNamed(args wire.CaptureNamedViewArgs) (wire.NamedViewInfo, error)
- func (v Views) Close(args wire.CloseViewArgs) (wire.ListViewsResult, error)
- func (v Views) DeleteNamed(args wire.NamedViewRefArgs) (wire.OKResult, error)
- func (v Views) Layout(document uint64) (wire.LayoutResult, error)
- func (v Views) List(document uint64) (wire.ListViewsResult, error)
- func (v Views) ListNamed(document uint64) (wire.NamedViewsResult, error)
- func (v Views) Rename(args wire.RenameViewArgs) (wire.ViewInfo, error)
- func (v Views) RestoreNamed(args wire.NamedViewRefArgs) (wire.CameraView, error)
- func (v Views) SetLayout(args wire.SetLayoutArgs) (wire.LayoutResult, error)
- type Windows
- type WorkPlanes
- func (w WorkPlanes) Create(args wire.CreateWorkPlaneArgs) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) Fixed(origin, xAxis, yAxis []float64) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) LineAndTangent(line, face string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) LinePlaneAndAngle(line, plane, angle string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) List() (wire.ListWorkPlanesResult, error)
- func (w WorkPlanes) NormalToCurve(curve, point string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) Offset(base, distance string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) PlaneAndPoint(base, point string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) PlaneAndTangent(base, face string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) PointAndTangent(point, face string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) Redefine(args wire.RedefineWorkPlaneArgs) (wire.RedefineWorkPlaneResult, error)
- func (w WorkPlanes) Repick(index, slot int, ref string) (wire.RedefineWorkPlaneResult, error)
- func (w WorkPlanes) SetScalar(index, scalar int, value string) (wire.RedefineWorkPlaneResult, error)
- func (w WorkPlanes) ThreePoints(p1, p2, p3 string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) TorusMidPlane(face string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) TwoLines(line1, line2 string) (wire.CreateWorkPlaneResult, error)
- func (w WorkPlanes) TwoPlanes(plane1, plane2 string) (wire.CreateWorkPlaneResult, error)
- type WorkPoints
- type WorkSurfaces
- func (w WorkSurfaces) Get(index int) (wire.WorkSurfaceDetailResult, error)
- func (w WorkSurfaces) List() (wire.ListWorkSurfacesResult, error)
- func (w WorkSurfaces) Rename(index int, name string) (wire.WorkSurfaceDetailResult, error)
- func (w WorkSurfaces) SetVisible(index int, visible bool) (wire.WorkSurfaceDetailResult, error)
func AddFeature
func AddFeature[A featureargs.Arg](f Features, a A) (json.RawMessage, error)
AddFeature creates a feature from a typed, compile-checked argument struct instead of a hand-assembled raw-JSON blob (the house rule "never reach the host with raw JSON"; ADR-0018, #1616). It marshals the struct, tags the envelope from its own [featureargs.Arg.Kind], and sends it through Features.Add; the result shape is operation-specific, so it is returned as raw JSON for the caller to decode (as with Add).
A method cannot carry its own type parameter in Go, so this is a free function over the Features group rather than a method — one generic constructor keyed on the arg type, not one hand-written method per kind (which would re-create the duplication this removes):
_, err := client.AddFeature(c.Features(), featureargs.Extrude{SketchIndex: 0, Distance: "50 mm"})
func PanelButton
func PanelButton(id, text, commandID string) wire.PanelControlSpec
PanelButton runs commandID when clicked.
func PanelCheckBox
func PanelCheckBox(id, text string, checked bool) wire.PanelControlSpec
PanelCheckBox is a boolean toggle.
func PanelComboBox
func PanelComboBox(id, text string, options []string, value string) wire.PanelControlSpec
PanelComboBox is an editable dropdown (pick from options or type a value).
func PanelDropdown
func PanelDropdown(id, text string, options []string, selected string) wire.PanelControlSpec
PanelDropdown selects one of options (selected is the current choice).
func PanelGrid
func PanelGrid(id string, columns []types.GridTrack, colGap, rowGap float64, children ...wire.PanelControlSpec) wire.PanelControlSpec
PanelGrid is a grid container: columns are the column tracks, colGap/rowGap the px spacing, children the cells. Children with no Cell auto-flow left-to-right, wrapping at len(columns); use PlaceAt to span or position a child explicitly.
Example: a two-column form is
PanelGrid("form", []types.GridTrack{TrackAuto(), TrackFr(1)}, 6, 4,
PanelLabel("l", "Start depth"), PanelTextBox("start", "", "0"))
func PanelGroup
func PanelGroup(id, title string, children ...wire.PanelControlSpec) wire.PanelControlSpec
PanelGroup is a titled box that stacks its children vertically (the QGroupBox of this vocabulary). As a tabs child, title doubles as the tab caption.
func PanelLabel
func PanelLabel(id, text string) wire.PanelControlSpec
PanelLabel is a static text row.
func PanelReferenceList
func PanelReferenceList(id, text string, accepts []string, rows []wire.PanelReferenceRow) wire.PanelControlSpec
PanelReferenceList builds a geometry reference-list control: rows are the current picked refs; accepts limits which host selection kinds Add may append ("face"/"edge"/"vertex"; empty = any). Row edits arrive as a wire.PanelReferencesChangedEvent, not the scalar value event.
func PanelSeparator
func PanelSeparator() wire.PanelControlSpec
PanelSeparator is a horizontal rule.
func PanelSlider
func PanelSlider(id, text string, value, min, max, step float64) wire.PanelControlSpec
PanelSlider is a bounded numeric slider over [min,max] stepping by step.
func PanelTab
func PanelTab(title string, content ...wire.PanelControlSpec) wire.PanelControlSpec
PanelTab is one pane for PanelTabs: a group titled title stacking content.
func PanelTabs
func PanelTabs(id string, panes ...wire.PanelControlSpec) wire.PanelControlSpec
PanelTabs is a tab strip; each pane is a container child whose Title is its tab caption. Build panes with PanelTab, or pass any titled container.
func PanelTextBox
func PanelTextBox(id, text, value string) wire.PanelControlSpec
PanelTextBox is a single-line text field labelled text with the current value.
func PanelValueEditor
func PanelValueEditor(id, text, value string) wire.PanelControlSpec
PanelValueEditor is a unit-bearing numeric field (value is a unit expression, e.g. "46.7 mm") — the parametric-driver input.
func PlaceAt
func PlaceAt(control wire.PanelControlSpec, col, colSpan int) wire.PanelControlSpec
PlaceAt stamps an explicit grid placement on a child: column col, spanning colSpan columns. Without it a child auto-flows into the next free cell.
func TrackAuto
func TrackAuto() types.GridTrack
TrackAuto sizes a column to its content.
func TrackFixed
func TrackFixed(px float64) types.GridTrack
TrackFixed sizes a column to exactly px pixels.
func TrackFr
func TrackFr(weight float64) types.GridTrack
TrackFr sizes a column to weight shares of the leftover space (CSS "fr").
func TrackMinMax
func TrackMinMax(base types.GridTrack, minPx, maxPx float64) types.GridTrack
TrackMinMax clamps a base track's resolved width to [minPx, maxPx] (CSS minmax()). A zero bound means unset, e.g. TrackMinMax(TrackFr(1), 80, 0) only enforces a floor.
type AddIns
AddIns is the add-in registry operation group — the ApplicationAddIns equivalent: enumerate what is installed, drive the activate/deactivate lifecycle, persist load behavior, and reach another add-in's automation surface.
type AddIns struct {
// contains filtered or unexported fields
}
func (AddIns) Activate
func (a AddIns) Activate(id string) (wire.OKResult, error)
Activate runs the add-in's activation (a no-op if it is already active). It fails for an add-in whose load behavior is LoadDisabled.
mcp:tool addins_activate mcp:summary Runs the add-in's activation (a no-op if it is already active).
func (AddIns) CallAutomation
func (a AddIns) CallAutomation(id, method string, args json.RawMessage) (json.RawMessage, error)
CallAutomation invokes a method on another add-in's automation surface (ApplicationAddIn.Automation) and returns its opaque JSON reply.
out, _ := client.AddIns().CallAutomation("com.example.solver", "solve", json.RawMessage(`{"n":3}`))
mcp:tool addins_call_automation mcp:summary Invokes a method on another add-in's automation surface (ApplicationAddIn.Automation) and returns its opaque JSON reply.
func (AddIns) Deactivate
func (a AddIns) Deactivate(id string) (wire.OKResult, error)
Deactivate runs the add-in's shutdown (a no-op if it is not active).
mcp:tool addins_deactivate mcp:summary Runs the add-in's shutdown (a no-op if it is not active).
func (AddIns) Get
func (a AddIns) Get(id string) (wire.AddInInfo, error)
Get returns one registry entry by add-in id.
mcp:tool addins_get mcp:summary Returns one registry entry by add-in id.
func (AddIns) List
func (a AddIns) List() (wire.ListAddInsResult, error)
List returns every registered add-in with its manifest identity and runtime state.
for _, a := range mustList(client.AddIns().List()).AddIns { fmt.Println(a.ID, a.Activated) }
mcp:tool addins_list mcp:summary Returns every registered add-in with its manifest identity and runtime state.
func (AddIns) SetLoadBehavior
func (a AddIns) SetLoadBehavior(id string, b types.AddInLoadBehavior) (wire.OKResult, error)
SetLoadBehavior persists when the host activates the add-in on future startups.
mcp:tool addins_set_load_behavior mcp:summary Persists when the host activates the add-in on future startups.
type Analysis
Analysis is the analysis operation group.
type Analysis struct {
// contains filtered or unexported fields
}
func (Analysis) MassProperties
func (a Analysis) MassProperties(args wire.MassPropertiesArgs) (wire.MassPropertiesResult, error)
MassProperties computes the active part's mass properties (volume, surface area, centre of mass, mass) for the given material density.
mcp:tool analysis_mass_properties mcp:summary Compute the active part's mass properties over all its solid bodies — volume (mm³), surface area (mm²), centre of mass (mm), mass (g), and mass moment of inertia about the centroid (g·mm²) with principal moments/axes. densityGCm3 overrides the material density (0 ⇒ the assigned material's, else 1.0); accuracy is low|medium|high.
func (Analysis) Measure
func (a Analysis) Measure(args wire.MeasureArgs) (wire.MeasureResult, error)
Measure reports a geometric quantity of one or two of the active part's entities.
mcp:tool analysis_measure mcp:summary Measure an entity of the active part's body (bodyIndex) by reference key: type "length" (edge keyA), "area" (face keyA), "distance" (between vertices keyA and keyB), "minDistance" (closest approach between two entities keyA and keyB, each a vertex/edge/face), "angle" (between two entities keyA and keyB, an edge direction or planar-face normal; or with keyC, the angle at apex vertex keyB between vertices keyA and keyC), or "loopLength" (the perimeter of face keyA). Returns the value with its unit (mm, mm² or deg).
func (Analysis) ModelHealth
func (a Analysis) ModelHealth(args wire.ModelHealthArgs) (wire.ModelHealthResult, error)
ModelHealth aggregates the active part's feature health — the overall status, the sick count, and every feature that is not OK.
mcp:tool analysis_model_health mcp:summary Aggregate the active part's model health: the overall (worst) status across its features, the count of sick features, and every feature that is not "ok" (with its status and reason) so they can be listed for repair.
type Appearances
Appearances is the appearance operation group: list/read the PBR appearances available to the active document and create/edit custom ones.
type Appearances struct {
// contains filtered or unexported fields
}
func (Appearances) Assign
func (a Appearances) Assign(args wire.AssignAppearanceArgs) (wire.OKResult, error)
Assign overrides the appearance at a scope ("part", "body", or "face"); Key is the hex reference key of the target (empty for the part default).
mcp:tool assign_appearance mcp:summary Assign an appearance to the active part (or a selected body).
func (Appearances) Create
func (a Appearances) Create(args wire.DuplicateAssetArgs) (wire.AppearanceInfo, error)
Create duplicates an existing appearance into a new editable one under name.
mcp:tool create_appearance mcp:summary Duplicate an existing appearance into a new editable one under a name.
func (Appearances) Get
func (a Appearances) Get(id string) (wire.AppearanceInfo, error)
Get returns one appearance by id.
mcp:tool get_appearance mcp:summary Get one appearance by id.
func (Appearances) List
func (a Appearances) List() (wire.ListAppearancesResult, error)
List returns every appearance available to the active document (built-in, project, and document-embedded).
mcp:tool list_appearances mcp:summary List the document's appearances (visual styles). mcp:digest summarizeAppearances
func (Appearances) Update
func (a Appearances) Update(info wire.AppearanceInfo) (wire.AppearanceInfo, error)
Update writes the editable fields of an appearance (by its id) and returns the result.
mcp:tool update_appearance mcp:summary Update an appearance's editable fields (identified by its id).
type Application
Application is the host-application info operation group: read-only facts an add-in can query about the running host. It is the ThisApplication equivalent for the version surface — distinct from the add-in registry (see Client.AddIns).
type Application struct {
// contains filtered or unexported fields
}
func (Application) ApiVersion
func (g Application) ApiVersion() (wire.ApplicationApiVersionResult, error)
ApiVersion returns the semantic version of the api contract the running host implements. The load-time handshake already guarantees the major matches, so an add-in uses this only to adapt to minor/patch differences within that major.
v, _ := client.Application().ApiVersion()
if v.Major == 0 { /* pre-1.0: surface MAY change between minors */ }
mcp:tool application_api_version mcp:summary Returns the semantic version (version string + major) of the Oblikovati API contract the running host implements.
type Assembly
Assembly is the assembly derive/shrinkwrap operation group (M11-F06, Oblikovati/Oblikovati#631/#716): pull a source assembly into the active part as a base body — optionally simplified — and break the link to freeze it. Each create returns the new feature's detail; break-link returns the refreshed detail.
type Assembly struct {
// contains filtered or unexported fields
}
func (Assembly) BOMExport
func (a Assembly) BOMExport(args wire.BOMExportArgs) (wire.BOMExportResult, error)
BOMExport exports the given view to CSV, adding a column for each named component property beyond the standard set, e.g. BOMExport(wire.BOMExportArgs{View: types.BOMStructured, Columns: []string{"Material"}}).
mcp:tool assembly_bom_export mcp:summary Exports the given view to CSV, adding a column for each named component property beyond the standard set, e.g.
func (Assembly) BOMView
func (a Assembly) BOMView(view types.BOMViewKind) (wire.BOMViewResult, error)
BOMView reads the given view of the active assembly's BOM, e.g. BOMView(types.BOMPartsOnly).
mcp:tool assembly_bom_view mcp:summary Reads the given view of the active assembly's BOM, e.g.
func (Assembly) Copy
func (a Assembly) Copy(sources ...uint64) (wire.NewOccurrencesResult, error)
Copy adds an independent copy of each source occurrence, e.g. Copy(id1, id2).
mcp:tool assembly_copy mcp:summary Adds an independent copy of each source occurrence, e.g.
func (Assembly) DeriveBreakLink
func (a Assembly) DeriveBreakLink(id uint64) (wire.FeatureDetailResult, error)
DeriveBreakLink freezes and severs the source link of the derived-assembly or shrinkwrap feature with the given id, e.g. DeriveBreakLink(featureID).
mcp:tool assembly_derive_break_link mcp:summary Freezes and severs the source link of the derived-assembly or shrinkwrap feature with the given id, e.g.
func (Assembly) DeriveCreate
func (a Assembly) DeriveCreate(source uint64) (wire.FeatureDetailResult, error)
DeriveCreate derives the open assembly document source into the active part as a base body, e.g. DeriveCreate(assemblyDocID).
mcp:tool assembly_derive_create mcp:summary Derives the open assembly document source into the active part as a base body, e.g.
func (Assembly) DeriveStatus
func (a Assembly) DeriveStatus(id uint64) (wire.DeriveStatusResult, error)
DeriveStatus reports whether the derive feature with the given id is out of date relative to its source document (its drive state), e.g. DeriveStatus(featureID).
mcp:tool assembly_derive_status mcp:summary Reports whether the derive feature with the given id is out of date relative to its source document (its drive state), e.g.
func (Assembly) DeriveUpdate
func (a Assembly) DeriveUpdate(id uint64) (wire.DeriveStatusResult, error)
DeriveUpdate re-syncs the derive feature with the given id to its source's current revision, clearing its out-of-date state, e.g. DeriveUpdate(featureID).
mcp:tool assembly_derive_update mcp:summary Re-syncs the derive feature with the given id to its source's current revision, clearing its out-of-date state, e.g.
func (Assembly) Ground
func (a Assembly) Ground(id uint64, grounded bool) (wire.OccurrenceResult, error)
Ground fixes or releases the occurrence in space, e.g. Ground(id, true).
mcp:tool ground_occurrence mcp:summary Fix (grounded:true) or release (grounded:false) an occurrence (id) in the assembly's space.
func (Assembly) Mirror
func (a Assembly) Mirror(args wire.MirrorComponentsArgs) (wire.NewOccurrencesResult, error)
Mirror adds a mirror of each source occurrence across the plane (origin, normal), e.g. Mirror(wire.MirrorComponentsArgs{Sources: []uint64{id}, Normal: [3]float64{1, 0, 0}}).
mcp:tool assembly_mirror mcp:summary Adds a mirror of each source occurrence across the plane (origin, normal), e.g.
func (Assembly) MirrorIntoPart
func (a Assembly) MirrorIntoPart(args wire.MirrorIntoPartArgs) (wire.NewOccurrencesResult, error)
MirrorIntoPart mirrors each source occurrence into a NEW opposite-hand part document and places it, e.g. MirrorIntoPart(wire.MirrorIntoPartArgs{Sources: []uint64{id}, Normal: [3]float64{1, 0, 0}}).
mcp:tool assembly_mirror_into_part mcp:summary Mirrors each source occurrence into a NEW opposite-hand part document and places it, e.g.
func (Assembly) Occurrences
func (a Assembly) Occurrences() (wire.OccurrencesResult, error)
Occurrences returns the active assembly's occurrence tree.
mcp:tool list_occurrences mcp:summary Read the active assembly's occurrence tree: each placed component with its id, name, 4×4 placement transform, state flags (suppressed/grounded/adaptive/substitute), and nested children. The ids address the other assembly tools.
func (Assembly) PatternCreate
func (a Assembly) PatternCreate(args wire.CreatePatternArgs) (wire.NewOccurrencesResult, error)
PatternCreate replicates the seed occurrence across an arrangement, e.g. a 4-up circular pattern: PatternCreate(wire.CreatePatternArgs{Seed: id, Kind: "circular", Axis: [3]float64{0, 0, 1}, Angle: math.Pi / 2, Count: 4}).
mcp:tool assembly_pattern_create mcp:summary Replicates the seed occurrence across an arrangement, e.g.
func (Assembly) Place
func (a Assembly) Place(args wire.PlaceOccurrenceArgs) (wire.OccurrenceResult, error)
Place places the component held by the open document (by id) into the active assembly, e.g. Place(wire.PlaceOccurrenceArgs{Document: docID, Name: "pin:1", Transform: t}).
mcp:tool place_component mcp:summary Place an open document (document: the id from list_documents — an open part or assembly) as a component in the active assembly, under name, at a row-major 4×4 transform (16 cells in assembly space; the identity [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1] drops it at the origin). Returns the new occurrence. mcp:input placeComponentArg
func (Assembly) PlaceByDefinition
func (a Assembly) PlaceByDefinition(args wire.PlaceByDefinitionArgs) (wire.OccurrenceResult, error)
PlaceByDefinition places another instance of the component that the source occurrence already instances, e.g. PlaceByDefinition(wire.PlaceByDefinitionArgs{Source: occID, Name: "pin:2", Transform: t}).
mcp:tool place_component_copy mcp:summary Place another instance of the component an existing occurrence (source: its id) already instances, under name at a 16-cell row-major transform — reuses the shared component definition without re-resolving a document. mcp:input placeComponentCopyArg
func (Assembly) PlaceByDefinitionBatch
func (a Assembly) PlaceByDefinitionBatch(args wire.PlaceByDefinitionBatchArgs) (wire.PlaceByDefinitionBatchResult, error)
PlaceByDefinitionBatch places many instances of the component an existing occurrence already instances, in ONE call, e.g. PlaceByDefinitionBatch(wire.PlaceByDefinitionBatchArgs{Source: occID, Placements: []wire.BatchPlacement{{Name: "pin:2", Transform: t2}, {Name: "pin:3", Transform: t3}}}). For a large assembly this is far faster than PlaceByDefinition in a loop: a live host recomputes once for the whole batch instead of once per copy.
mcp:tool place_component_copies mcp:summary Place MANY instances of the component an existing occurrence (source: its id) already instances, in one call — placements is a list of {name, transform (16-cell row-major)}. Far faster than place_component_copy per copy for a large assembly (one recompute, not one per placement). Returns the new occurrences in order. mcp:input placeComponentCopiesArg
func (Assembly) Remove
func (a Assembly) Remove(id uint64) (wire.OccurrencesResult, error)
Remove deletes the occurrence and returns the refreshed tree, e.g. Remove(id).
mcp:tool remove_occurrence mcp:summary Delete an occurrence (id) from the active assembly. Returns the remaining occurrence tree.
func (Assembly) Replace
func (a Assembly) Replace(id, document uint64) (wire.OccurrenceResult, error)
Replace swaps the occurrence's component for the one held by the open document (by id), keeping the occurrence's id/name/transform/state, e.g. Replace(occID, docID).
mcp:tool replace_occurrence mcp:summary Swap the component of an occurrence (id) for the one held by an open document (document: its id), keeping the occurrence's id, name, transform, and state — the replace-component operation.
func (Assembly) SetFlexible
func (a Assembly) SetFlexible(id uint64, flexible bool) (wire.OccurrenceResult, error)
SetFlexible marks a subassembly occurrence flexible (it solves independently per placement) or rigid, e.g. SetFlexible(id, true).
mcp:tool set_flexible_occurrence mcp:summary Mark a subassembly occurrence (id) flexible (flexible:true — its components solve independently per placement of the shared definition) or rigid. Mutually exclusive with adaptive; only a subassembly occurrence can be flexible (M12-F06).
func (Assembly) SetFlexibleChild
func (a Assembly) SetFlexibleChild(args wire.SetFlexibleChildArgs) (wire.OccurrenceResult, error)
SetFlexibleChild positions a child component within a flexible subassembly occurrence independently of the subassembly's other placements (M12-F06 independent solve), e.g. SetFlexibleChild(wire.SetFlexibleChildArgs{Occurrence: id, Child: "arm:1", Transform: m}).
mcp:tool set_flexible_child mcp:summary Position a child component (child: its instance name) within a flexible subassembly occurrence (occurrence id) to a row-major 4×4 transform (16 cells) — independently of the subassembly's other placements. The occurrence must be flexible. Returns the occurrence's refreshed info. mcp:input setFlexibleChildArg
func (Assembly) ShrinkwrapCreate
func (a Assembly) ShrinkwrapCreate(args wire.ShrinkwrapCreateArgs) (wire.FeatureDetailResult, error)
ShrinkwrapCreate derives the open assembly document into the active part as a simplified, lightweight base body per the given removal/envelope options, e.g. ShrinkwrapCreate(wire.ShrinkwrapCreateArgs{Source: id, EnvelopeStyle: types.EnvelopeWhole}).
mcp:tool assembly_shrinkwrap_create mcp:summary Derives the open assembly document into the active part as a simplified, lightweight base body per the given removal/envelope options, e.g.
func (Assembly) Substitute
func (a Assembly) Substitute(args wire.SubstituteComponentsArgs) (wire.OccurrenceResult, error)
Substitute suppresses the source occurrences and adds one occurrence instancing the simplified component held by the open document, e.g. Substitute(wire.SubstituteComponentsArgs{Sources: ids, Document: docID, Name: "lod:1", Transform: t}).
mcp:tool assembly_substitute mcp:summary Suppresses the source occurrences and adds one occurrence instancing the simplified component held by the open document, e.g.
func (Assembly) Suppress
func (a Assembly) Suppress(id uint64, suppressed bool) (wire.OccurrenceResult, error)
Suppress excludes or restores the occurrence from the model, e.g. Suppress(id, true).
mcp:tool suppress_occurrence mcp:summary Exclude (suppressed:true) or restore (suppressed:false) an occurrence (id) from/to the model.
func (Assembly) Transform
func (a Assembly) Transform(args wire.TransformOccurrenceArgs) (wire.OccurrenceResult, error)
Transform repositions the occurrence, e.g. Transform(wire.TransformOccurrenceArgs{ID: id, Transform: t}).
mcp:tool transform_occurrence mcp:summary Reposition an occurrence (id) to a new row-major 4×4 transform (16 cells) in the assembly's space. Returns the occurrence's refreshed info. mcp:input transformOccurrenceArg
type AssemblyConstraints
AssemblyConstraints is the assembly constraint operation group (M12-F01, Oblikovati/Oblikovati#358/#363): add the relationships that position one occurrence relative to another, set their limits, delete them, solve the active assembly, and read its health and per-occurrence degrees of freedom. Each add returns the new constraint's info after the assembly re-solves; solve and health return the assembly health report.
type AssemblyConstraints struct {
// contains filtered or unexported fields
}
func (AssemblyConstraints) AddAngle
func (a AssemblyConstraints) AddAngle(args wire.AddAngleArgs) (wire.ConstraintResult, error)
AddAngle holds an angle (radians) between directions A and B, e.g. AddAngle(wire.AddAngleArgs{A: faceA, B: faceB, Angle: math.Pi / 2}).
mcp:tool add_angle_constraint mcp:summary Hold angle (radians) between two component directions. solution "undirected" (default), "directed", or "reference-vector". Solves and returns the constraint.
func (AssemblyConstraints) AddCustom
func (a AssemblyConstraints) AddCustom(args wire.AddCustomArgs) (wire.ConstraintResult, error)
AddCustom registers a relationship between A and B solved by the add-in named Kind, e.g. AddCustom(wire.AddCustomArgs{A: a, B: b, Kind: "cam-profile", Params: []float64{1, 2}}).
mcp:tool add_custom_constraint mcp:summary Register a relationship solved by an add-in (kind names it, params drive it). The built-in solver leaves it free unless that add-in solver is installed. Returns the constraint.
func (AssemblyConstraints) AddFlush
func (a AssemblyConstraints) AddFlush(args wire.AddFlushArgs) (wire.ConstraintResult, error)
AddFlush makes faces A and B co-planar at an offset, e.g. AddFlush(wire.AddFlushArgs{A: faceA, B: faceB}).
mcp:tool add_flush_constraint mcp:summary Make two component faces co-planar (normals aligned) at offset (cm). Solves and returns the constraint.
func (AssemblyConstraints) AddInsert
func (a AssemblyConstraints) AddInsert(args wire.AddInsertArgs) (wire.ConstraintResult, error)
AddInsert combines an axis mate and a plane mate at an offset (a bolt into a hole), e.g. AddInsert(wire.AddInsertArgs{A: holeA, B: shaftB, Offset: 0}).
mcp:tool add_insert_constraint mcp:summary Insert: collinear axes plus a plane mate at offset (cm) — a bolt into a hole. aligned:true uses the aligned plane sense; default is opposed. Solves and returns the constraint.
func (AssemblyConstraints) AddMate
func (a AssemblyConstraints) AddMate(args wire.AddMateArgs) (wire.ConstraintResult, error)
AddMate makes geometry A coincident with geometry B at an offset, e.g. AddMate(wire.AddMateArgs{A: faceA, B: faceB, Offset: 0}).
mcp:tool add_mate_constraint mcp:summary Mate two component geometries (each: occurrence id + entity reference key) coincident at offset (cm). solution "opposed" (default) faces normals at each other, "aligned" matches a flush. Solves and returns the constraint.
func (AssemblyConstraints) AddRotateRotate
func (a AssemblyConstraints) AddRotateRotate(args wire.AddRotateRotateArgs) (wire.ConstraintResult, error)
AddRotateRotate couples two rotations by a gear ratio, e.g. AddRotateRotate(wire.AddRotateRotateArgs{A: gearA, B: gearB, Ratio: 2}).
mcp:tool add_rotate_rotate_constraint mcp:summary Couple two rotation axes by gear ratio (revolutions of B per revolution of A). Solves and returns the constraint.
func (AssemblyConstraints) AddRotateTranslate
func (a AssemblyConstraints) AddRotateTranslate(args wire.AddRotateTranslateArgs) (wire.ConstraintResult, error)
AddRotateTranslate couples a rotation to a translation (rack and pinion), e.g. AddRotateTranslate(wire.AddRotateTranslateArgs{A: pinion, B: rack, Distance: 6.28}).
mcp:tool add_rotate_translate_constraint mcp:summary Couple a rotation axis to a translation axis by distance moved per revolution (cm) — rack and pinion. Solves and returns the constraint.
func (AssemblyConstraints) AddSymmetry
func (a AssemblyConstraints) AddSymmetry(args wire.AddSymmetryArgs) (wire.ConstraintResult, error)
AddSymmetry positions A and B symmetrically about a plane, e.g. AddSymmetry(wire.AddSymmetryArgs{A: faceA, B: faceB, Plane: mid}).
mcp:tool add_symmetry_constraint mcp:summary Position two component geometries symmetrically about a plane (a planar face or work-plane reference). Solves and returns the constraint.
func (AssemblyConstraints) AddTangent
func (a AssemblyConstraints) AddTangent(args wire.AddTangentArgs) (wire.ConstraintResult, error)
AddTangent keeps face A tangent to curved face B, e.g. AddTangent(wire.AddTangentArgs{A: planeA, B: cylB, Inside: false}).
mcp:tool add_tangent_constraint mcp:summary Keep a face tangent to a curved face. inside:true wraps B around A; false is outside tangency. Solves and returns the constraint.
func (AssemblyConstraints) AddTransitional
func (a AssemblyConstraints) AddTransitional(args wire.AddTransitionalArgs) (wire.ConstraintResult, error)
AddTransitional keeps face A in sliding contact with face B, e.g. AddTransitional(wire.AddTransitionalArgs{A: pinFace, B: slotFace}).
mcp:tool add_transitional_constraint mcp:summary Keep a face in sliding contact with a transition face as the component moves (cam/slot). Solves and returns the constraint.
func (AssemblyConstraints) AddTranslateTranslate
func (a AssemblyConstraints) AddTranslateTranslate(args wire.AddTranslateTranslateArgs) (wire.ConstraintResult, error)
AddTranslateTranslate couples two translations by a ratio, e.g. AddTranslateTranslate(wire.AddTranslateTranslateArgs{A: slideA, B: slideB, Ratio: 2}).
mcp:tool add_translate_translate_constraint mcp:summary Couple two translation axes by ratio (distance of B per unit distance of A). Solves and returns the constraint.
func (AssemblyConstraints) Delete
func (a AssemblyConstraints) Delete(id uint64) (wire.ConstraintsResult, error)
Delete removes the constraint and returns the refreshed set, e.g. Delete(id).
mcp:tool delete_assembly_constraint mcp:summary Delete an assembly constraint (id) and re-solve. Returns the remaining constraint set.
func (AssemblyConstraints) Health
func (a AssemblyConstraints) Health() (wire.AssemblyHealthResult, error)
Health returns the active assembly's constraint health and DOF report without re-solving.
mcp:tool assembly_constraint_health mcp:summary Report the active assembly's constraint health: overall status, redundant-constraint count, total remaining degrees of freedom, and the per-occurrence DOF breakdown — without re-solving.
func (AssemblyConstraints) List
func (a AssemblyConstraints) List() (wire.ConstraintsResult, error)
List returns the active assembly's constraint set in creation order.
mcp:tool list_assembly_constraints mcp:summary List the active assembly's constraints: each with id, kind, name, its two geometry inputs (occurrence id + entity reference key), driven value, solution type, limits, and health. The ids address the delete/setLimits tools.
func (AssemblyConstraints) SetLimits
func (a AssemblyConstraints) SetLimits(args wire.SetConstraintLimitsArgs) (wire.ConstraintResult, error)
SetLimits sets (or clears) the driven-value limits of a constraint, e.g. SetLimits(wire.SetConstraintLimitsArgs{ID: id, Limits: wire.ConstraintLimits{HasMax: true, Max: 1}}).
mcp:tool set_constraint_limits mcp:summary Set or clear a constraint's driven-value limits (min/max/resting). Each bound is optional via its has* flag. Returns the updated constraint.
func (AssemblyConstraints) Snap
func (a AssemblyConstraints) Snap(args wire.SnapConstraintArgs) (wire.ConstraintResult, error)
Snap is "grip snap": it infers the assembly constraint that snaps geometry A (on the component to move) onto target geometry B and re-solves, e.g. Snap(wire.SnapConstraintArgs{A: faceA, B: faceB}).
mcp:tool assembly_snap_constrain mcp:summary Grip snap: pick a geometry A on the component to move and a target B on another component; the host infers the constraint that snaps A onto B (planar faces -> mate/flush, cylinder axes -> insert, axis pair -> mate, plane+cylinder -> tangent, point -> coincident), creates it, and re-solves so the part jumps into place. prefer ("mate"|"flush"|"insert"|"tangent") overrides the inference. Returns the created constraint (its type is what was inferred).
func (AssemblyConstraints) Solve
func (a AssemblyConstraints) Solve() (wire.AssemblyHealthResult, error)
Solve re-positions the active assembly's occurrences to satisfy its constraints and returns the resulting health and DOF report.
mcp:tool solve_assembly_constraints mcp:summary Solve the active assembly: reposition occurrences to satisfy the constraints, then report overall health, redundant-constraint count, total remaining degrees of freedom, and per-occurrence DOF.
type AssemblyDrive
AssemblyDrive is the assembly drive operation group (M12-F03, Oblikovati/Oblikovati#366): sweep a joint's driven variable through a range and read back the per-step occurrence placements — the frames of a kinematic motion study. Each step re-solves the assembly with the driven variable pinned; with collision detection the sweep halts at the first interfering frame.
type AssemblyDrive struct {
// contains filtered or unexported fields
}
func (AssemblyDrive) Preview
func (a AssemblyDrive) Preview(args wire.DriveJointArgs) (wire.DriveResult, error)
Preview drives a joint through the given settings and returns the resulting frames, e.g. Preview(wire.DriveJointArgs{Joint: id, Settings: wire.DriveSettingsDTO{Start: 0, End: math.Pi, Step: math.Pi / 18}}).
mcp:tool drive_joint mcp:summary Drive a joint's variable through a range (settings: start, end, step in radians for angular / cm for linear; optional variable angular|linear, repetitionCount, repetitionStartEndStart ping-pong, collisionDetection). Re-solves each step; returns the frames (driven value + occurrence transforms), halting at the first interfering frame when collision detection is on.
type AssemblyFeatures
AssemblyFeatures is the assembly feature-program operation group (M11-F08, Oblikovati/Oblikovati#633/#725): list the machining features authored in the active assembly, add one, edit which occurrences a feature participates on, suppress them in batch, and move the end-of-features rollback marker.
type AssemblyFeatures struct {
// contains filtered or unexported fields
}
func (AssemblyFeatures) Add
func (a AssemblyFeatures) Add(args wire.AddAssemblyFeatureArgs) (wire.AssemblyFeatureResult, error)
Add adds a box-tool cut feature to the active assembly, e.g. Add(wire.AddAssemblyFeatureArgs{ToolMin: [3]float64{0, 0, 0.5}, ToolMax: [3]float64{1, 1, 2}, Operation: "difference"}).
mcp:tool assembly_features_add mcp:summary Adds a box-tool cut feature to the active assembly, e.g.
func (AssemblyFeatures) AddChamfer
func (a AssemblyFeatures) AddChamfer(args wire.AddAssemblyChamferArgs) (wire.AssemblyFeatureResult, error)
AddChamfer chamfers the given component edges by distance on every participant, e.g. AddChamfer(wire.AddAssemblyChamferArgs{Edges: []wire.AssemblyEdgeRef{{Occurrence: o, Edge: key}}, Distance: 2}).
mcp:tool assembly_features_add_chamfer mcp:summary Chamfers the given component edges by distance on every participant, e.g.
func (AssemblyFeatures) AddExtrude
func (a AssemblyFeatures) AddExtrude(args wire.AddAssemblyExtrudeArgs) (wire.AssemblyFeatureResult, error)
AddExtrude extrudes a closed sketch profile (authored on an assembly work plane) into every participant — a profiled pocket ("difference") or boss ("union"). E.g. AddExtrude(wire.AddAssemblyExtrudeArgs{SketchIndex: 0, ProfileIndex: 0, Distance: 6, Operation: "difference"}).
mcp:tool assembly_features_add_extrude mcp:summary Extrudes a closed sketch profile (authored on an assembly work plane) into every participant — a profiled pocket ("difference") or boss ("union").
func (AssemblyFeatures) AddFillet
func (a AssemblyFeatures) AddFillet(args wire.AddAssemblyFilletArgs) (wire.AssemblyFeatureResult, error)
AddFillet rounds the given component edges to radius on every participant, e.g. AddFillet(wire.AddAssemblyFilletArgs{Edges: []wire.AssemblyEdgeRef{{Occurrence: o, Edge: key}}, Radius: 1}).
mcp:tool assembly_features_add_fillet mcp:summary Rounds the given component edges to radius on every participant, e.g.
func (AssemblyFeatures) AddHole
func (a AssemblyFeatures) AddHole(args wire.AddAssemblyHoleArgs) (wire.AssemblyFeatureResult, error)
AddHole drills a hole of the given diameter and depth from center along axis through the active assembly's participants — a parametric kind needing no sketch. E.g. AddHole(wire.AddAssemblyHoleArgs{Center: [3]float64{5, 5, 0}, Axis: [3]float64{0, 0, 1}, Diameter: 6, Depth: 20}).
mcp:tool assembly_features_add_hole mcp:summary Drills a hole of the given diameter and depth from center along axis through the active assembly's participants — a parametric kind needing no sketch.
func (AssemblyFeatures) AddMoveFace
func (a AssemblyFeatures) AddMoveFace(args wire.AddAssemblyMoveFaceArgs) (wire.AssemblyFeatureResult, error)
AddMoveFace translates the given component faces by the vector on every participant, e.g. AddMoveFace(wire.AddAssemblyMoveFaceArgs{Faces: []wire.AssemblyFaceRef{{Occurrence: o, Face: key}}, Translation: [3]float64{0, 0, 1}}).
mcp:tool assembly_features_add_move_face mcp:summary Translates the given component faces by the vector on every participant, e.g.
func (AssemblyFeatures) AddProxyCut
func (a AssemblyFeatures) AddProxyCut(source uint64, operation string) (wire.AssemblyFeatureResult, error)
AddProxyCut adds a feature whose tool is the geometry of the source occurrence, supplied as an occurrence-context proxy and re-resolved each rebuild (associative), so the machining follows the source. E.g. AddProxyCut(sourceOccurrenceID, "difference").
mcp:tool assembly_features_add_proxy_cut mcp:summary Adds a feature whose tool is the geometry of the source occurrence, supplied as an occurrence-context proxy and re-resolved each rebuild (associative), so the machining follows the source.
func (AssemblyFeatures) AddRevolve
func (a AssemblyFeatures) AddRevolve(args wire.AddAssemblyRevolveArgs) (wire.AssemblyFeatureResult, error)
AddRevolve revolves a closed sketch profile (authored on an assembly work plane) about the axis line (origin + direction) into every participant — a turned groove ("difference") or boss ("union"). Angle is radians in (0,2π] (2π is a full turn). E.g. AddRevolve(wire.AddAssemblyRevolveArgs{SketchIndex: 0, ProfileIndex: 0, Origin: [3]float64{0, 0, 0}, Axis: [3]float64{0, 1, 0}, Angle: math.Pi, Operation: "difference"}).
mcp:tool assembly_features_add_revolve mcp:summary Revolves a closed sketch profile (authored on an assembly work plane) about the axis line (origin + direction) into every participant — a turned groove ("difference") or boss ("union").
func (AssemblyFeatures) AddSweep
func (a AssemblyFeatures) AddSweep(args wire.AddAssemblySweepArgs) (wire.AssemblyFeatureResult, error)
AddSweep sweeps an assembly sketch profile along the given polyline path into every participant, e.g. AddSweep(wire.AddAssemblySweepArgs{SketchIndex: 0, ProfileIndex: 0, Path: [][3]float64{{0,0,0},{0,0,1}}, Operation: "difference"}).
mcp:tool assembly_features_add_sweep mcp:summary Sweeps an assembly sketch profile along the given polyline path into every participant, e.g.
func (AssemblyFeatures) Edit
func (a AssemblyFeatures) Edit(id uint64, scalars []wire.ScalarEdit) (wire.AssemblyFeatureResult, error)
Edit sets editable scalars of assembly feature id in place and returns the refreshed feature, e.g. Edit(3, []wire.ScalarEdit{{Index: 0, Value: "8 mm"}}) to deepen a pocket. Scalar indices come from the feature's Scalars; the whole batch is validated before any is applied.
mcp:tool assembly_features_edit mcp:summary Sets editable scalars of assembly feature id in place and returns the refreshed feature, e.g.
func (AssemblyFeatures) GetEndOfFeatures
func (a AssemblyFeatures) GetEndOfFeatures() (wire.EndOfFeaturesResult, error)
GetEndOfFeatures returns the active assembly's end-of-features marker state.
mcp:tool assembly_get_end_of_features mcp:summary Returns the active assembly's end-of-features marker state.
func (AssemblyFeatures) List
func (a AssemblyFeatures) List() (wire.AssemblyFeaturesResult, error)
List returns the active assembly's feature program and rollback-marker state.
mcp:tool assembly_features_list mcp:summary Returns the active assembly's feature program and rollback-marker state.
func (AssemblyFeatures) SetEndOfFeatures
func (a AssemblyFeatures) SetEndOfFeatures(position int) (wire.AssemblyFeaturesResult, error)
SetEndOfFeatures moves the marker to position (negative restores it to the end) and returns the refreshed program, e.g. SetEndOfFeatures(1).
mcp:tool assembly_set_end_of_features mcp:summary Moves the marker to position (negative restores it to the end) and returns the refreshed program, e.g.
func (AssemblyFeatures) SetParticipantPaths
func (a AssemblyFeatures) SetParticipantPaths(id uint64, paths [][]string) (wire.AssemblyFeatureResult, error)
SetParticipantPaths restricts a feature to specific nested occurrence paths (each a sequence of instance names, root first), disambiguating a sub-assembly placed more than once; passing no paths clears the restriction. E.g. SetParticipantPaths(featureID, [][]string{{"gearbox:1", "bolt:3"}}).
mcp:tool assembly_features_set_participant_paths mcp:summary Restricts a feature to specific nested occurrence paths (each a sequence of instance names, root first), disambiguating a sub-assembly placed more than once; passing no paths clears the restriction.
func (AssemblyFeatures) SetParticipants
func (a AssemblyFeatures) SetParticipants(id uint64, participants []uint64) (wire.AssemblyFeatureResult, error)
SetParticipants replaces a feature's participation set with the occurrences named by their session ids, e.g. SetParticipants(featureID, []uint64{7, 8}).
mcp:tool assembly_features_set_participants mcp:summary Replaces a feature's participation set with the occurrences named by their session ids, e.g.
func (AssemblyFeatures) SetSuppressed
func (a AssemblyFeatures) SetSuppressed(ids []uint64, suppressed bool) (wire.AssemblyFeaturesResult, error)
SetSuppressed suppresses or unsuppresses the named features in one batch and returns the refreshed program, e.g. SetSuppressed([]uint64{3}, true).
mcp:tool assembly_features_set_suppressed mcp:summary Suppresses or unsuppresses the named features in one batch and returns the refreshed program, e.g.
type AssemblyJoints
AssemblyJoints is the assembly joint operation group (M12-F02, Oblikovati/Oblikovati#359/ #364): author the simplified joints that establish a degree-of-freedom set between two occurrences, set their limits and flip, and delete them. Joints solve together with constraints — use solve_assembly_constraints / assembly_constraint_health to position and report. Each add returns the new joint's info after the assembly re-solves.
type AssemblyJoints struct {
// contains filtered or unexported fields
}
func (AssemblyJoints) AddBall
func (a AssemblyJoints) AddBall(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddBall allows three rotations about a common point (3 DOF).
mcp:tool add_ball_joint mcp:summary Add a ball joint — three rotations about a common point (3 DOF) — between two component joint origins. Solves and returns the joint.
func (AssemblyJoints) AddCylindrical
func (a AssemblyJoints) AddCylindrical(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddCylindrical allows translation along and rotation about the axis (2 DOF).
mcp:tool add_cylindrical_joint mcp:summary Add a cylindrical joint — translation along and rotation about the joint axis (2 DOF) — between two component joint origins. Solves and returns the joint.
func (AssemblyJoints) AddPlanar
func (a AssemblyJoints) AddPlanar(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddPlanar allows two in-plane translations and a rotation about the normal (3 DOF).
mcp:tool add_planar_joint mcp:summary Add a planar joint — two in-plane translations + rotation about the plane normal (3 DOF) — between two component joint origins. Solves and returns the joint.
func (AssemblyJoints) AddRigid
func (a AssemblyJoints) AddRigid(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddRigid fixes two components together (0 DOF).
mcp:tool add_rigid_joint mcp:summary Add a rigid joint fixing two components together (0 DOF) at their joint origins (each: occurrence id + entity reference key). Solves and returns the joint.
func (AssemblyJoints) AddRotational
func (a AssemblyJoints) AddRotational(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddRotational allows one rotation about the joint axis (1 DOF).
mcp:tool add_rotational_joint mcp:summary Add a rotational joint — one rotation about the joint axis (1 DOF), a hinge — between two component joint origins. flip reverses the facing sense. Solves and returns the joint.
func (AssemblyJoints) AddSlider
func (a AssemblyJoints) AddSlider(args wire.AddJointArgs) (wire.AssemblyJointResult, error)
AddSlider allows one translation along the joint axis (1 DOF).
mcp:tool add_slider_joint mcp:summary Add a slider joint — one translation along the joint axis (1 DOF) — between two component joint origins. Solves and returns the joint.
func (AssemblyJoints) Delete
func (a AssemblyJoints) Delete(id uint64) (wire.AssemblyJointsResult, error)
Delete removes the joint and returns the refreshed set, e.g. Delete(id).
mcp:tool delete_assembly_joint mcp:summary Delete an assembly joint (id) and re-solve. Returns the remaining joint set.
func (AssemblyJoints) List
func (a AssemblyJoints) List() (wire.AssemblyJointsResult, error)
List returns the active assembly's joint set in creation order.
mcp:tool list_assembly_joints mcp:summary List the active assembly's joints: each with id, kind, name, its two joint-origin geometry inputs (occurrence id + entity reference key), flip, free DOF, and limits.
func (AssemblyJoints) SetFlip
func (a AssemblyJoints) SetFlip(id uint64, flip bool) (wire.AssemblyJointResult, error)
SetFlip sets a joint's flip sense, e.g. SetFlip(id, true).
mcp:tool set_joint_flip mcp:summary Flip (flip:true) or unflip a joint's primary-axis sense (which way the components face). Returns the updated joint.
func (AssemblyJoints) SetLimits
func (a AssemblyJoints) SetLimits(args wire.SetJointLimitsArgs) (wire.AssemblyJointResult, error)
SetLimits sets a joint's linear/angular bounds, e.g. SetLimits(wire.SetJointLimitsArgs{ID: id, Limits: wire.JointLimits{HasAngularMax: true, AngularMax: 1.57}}).
mcp:tool set_joint_limits mcp:summary Set a joint's driven-value limits — a linear range (cm) and/or an angular range (radians); each bound optional via its has* flag. Returns the updated joint.
type Attributes
Attributes is the add-in attribute-set operation group (#155): named, typed values an add-in attaches to a document and that persist with it — the sanctioned way to store add-in data and tag the model. An attribute lives in a named set (a namespace, conventionally the add-in id).
type Attributes struct {
// contains filtered or unexported fields
}
func (Attributes) Delete
func (a Attributes) Delete(document uint64, set, name string) (wire.DeleteAttributeResult, error)
Delete removes the named document-scoped attribute in the set, or the whole set when name is empty; the result reports how many attributes were removed.
func (Attributes) DeleteOn
func (a Attributes) DeleteOn(document uint64, target, set, name string) (wire.DeleteAttributeResult, error)
DeleteOn removes the named attribute in the set on the given target (empty = the document itself), or the whole set on that target when name is empty; the result reports how many were removed.
mcp:tool delete_attribute mcp:summary Delete an attribute (or a whole set when name is empty) on a document, optionally anchored to an entity by reference key.
func (Attributes) Find
func (a Attributes) Find(set, name string) (wire.FindByAttributeResult, error)
Find locates the open documents carrying an attribute in set; restrict to a name when non-empty.
mcp:tool find_by_attribute mcp:summary Find the open documents carrying an attribute in a given set (optionally by name).
func (Attributes) Get
func (a Attributes) Get(document uint64, set, name string) (wire.AttributeResult, error)
Get reads one document-scoped attribute by set and name; Found is false when it is absent.
func (Attributes) GetOn
func (a Attributes) GetOn(document uint64, target, set, name string) (wire.AttributeResult, error)
GetOn reads one attribute by set and name on the given target (empty = the document itself); Found is false when it is absent.
mcp:tool get_attribute mcp:summary Read a stored attribute by set and name on a document (optionally anchored to an entity by reference key).
func (Attributes) List
func (a Attributes) List(document uint64, set string) (wire.ListAttributesResult, error)
List returns the document-scoped attributes, or only those in set when set is non-empty.
mcp:tool list_attributes mcp:summary List the document-scoped attributes on a document (optionally filtered to one set).
func (Attributes) ListAll
func (a Attributes) ListAll(document uint64, set string) (wire.ListAttributesResult, error)
ListAll returns every attribute on every target in the document (each result carries its own Target), optionally filtered to one set. Use it to read back all of an add-in's per-entity tags.
func (Attributes) ListOn
func (a Attributes) ListOn(document uint64, target, set string) (wire.ListAttributesResult, error)
ListOn returns the attributes anchored to the given target (empty = the document itself), optionally filtered to one set.
func (Attributes) ListSets
func (a Attributes) ListSets(document uint64) (wire.ListAttributeSetsResult, error)
ListSets returns the document's attribute set names, sorted.
mcp:tool list_attribute_sets mcp:summary List the attribute set names on a document.
func (Attributes) Set
func (a Attributes) Set(document uint64, set, name string, value types.Variant) (wire.AttributeResult, error)
Set creates or replaces the named document-scoped attribute in the set with the typed value.
func (Attributes) SetOn
func (a Attributes) SetOn(document uint64, target, set, name string, value types.Variant) (wire.AttributeResult, error)
SetOn creates or replaces the named attribute in the set on the given target (a body/face/edge reference key from body.list or model.referenceKeys; empty target = the document itself) with the typed value. Anchoring by reference key lets the tag survive recompute.
mcp:tool set_attribute mcp:summary Store a typed value under a name in a named set on a document, optionally anchored to an entity by reference key.
type Body
Body is the solid-body topology and query method group (M07-F03/F06/F07, Oblikovati/Oblikovati#293/#629/#630).
type Body struct {
// contains filtered or unexported fields
}
func (Body) BindTransientKey
func (b Body) BindTransientKey(bodyIndex int, transientKey uint64) (wire.BindTransientKeyResult, error)
BindTransientKey resolves a session transient key back to its entity.
mcp:tool body_bind_transient_key mcp:summary Resolves a session transient key back to its entity.
func (Body) CalculateFacets
func (b Body) CalculateFacets(args wire.CalculateFacetsArgs) (wire.FacetSetResult, error)
CalculateFacets facets the body at the tolerance (cached under it).
mcp:tool body_calculate_facets mcp:summary Facets the body at the tolerance (cached under it).
func (Body) CalculateStrokes
func (b Body) CalculateStrokes(bodyIndex int, tolerance float64) (wire.StrokeSetResult, error)
CalculateStrokes samples the body's edges at the tolerance (cached).
mcp:tool body_calculate_strokes mcp:summary Samples the body's edges at the tolerance (cached).
func (Body) ConvexityEdges
func (b Body) ConvexityEdges(bodyIndex int, collection types.EdgeCollectionKind) (wire.ConvexityEdgesResult, error)
ConvexityEdges returns the body's edges of the requested dihedral class.
mcp:tool body_convexity_edges mcp:summary Returns the body's edges of the requested dihedral class.
func (Body) Delete
func (b Body) Delete(index int) (wire.BodyListResult, error)
Delete removes the body at index (from List) from the active part, returning the refreshed body list (#1078).
mcp:tool body_delete mcp:summary Delete one body of the active part by index, returning the refreshed body list.
func (Body) ExistingFacets
func (b Body) ExistingFacets(bodyIndex int, tolerance float64) (wire.FacetSetResult, error)
ExistingFacets retrieves a previously calculated facet set without re-faceting (errors when no set exists at the tolerance).
mcp:tool body_existing_facets mcp:summary Retrieves a previously calculated facet set without re-faceting (errors when no set exists at the tolerance).
func (Body) ExistingStrokes
func (b Body) ExistingStrokes(bodyIndex int, tolerance float64) (wire.StrokeSetResult, error)
ExistingStrokes retrieves a previously calculated stroke set.
mcp:tool body_existing_strokes mcp:summary Retrieves a previously calculated stroke set.
func (Body) FaceCalculateFacets
func (b Body) FaceCalculateFacets(args wire.FaceFacetsArgs) (wire.FacetSetResult, error)
FaceCalculateFacets facets one face (riding the body's tolerance cache).
mcp:tool face_calculate_facets mcp:summary Facets one face (riding the body's tolerance cache).
func (Body) FaceCalculateStrokes
func (b Body) FaceCalculateStrokes(args wire.FaceFacetsArgs) (wire.StrokeSetResult, error)
FaceCalculateStrokes samples one face's boundary edges.
mcp:tool face_calculate_strokes mcp:summary Samples one face's boundary edges.
func (Body) FaceEvaluate
func (b Body) FaceEvaluate(args wire.FaceEvaluateArgs) (wire.FaceEvaluateResult, error)
FaceEvaluate batch-evaluates one face's surface (point/normal/tangents at given (u,v) parameters, or the projection of given points onto the face), addressed by reference key. The mode selects the query (see the wire.FaceEval* constants); inputs and the populated result arrays are flat and parallel. Lengths are database units (cm); normals are unit vectors. It is the out-of-process query a surface-following or point-projection toolpath uses to sample a face densely in one call.
mcp:tool body_face_evaluate mcp:summary Batch-evaluates a face's surface (point/normal/tangents by param, or point projection).
func (Body) FacetTolerances
func (b Body) FacetTolerances(bodyIndex int) (wire.FacetTolerancesResult, error)
FacetTolerances lists the tolerances facet sets are cached at, ascending.
mcp:tool body_facet_tolerances mcp:summary Lists the tolerances facet sets are cached at, ascending.
func (Body) FindUsingRay
func (b Body) FindUsingRay(args wire.FindUsingRayArgs) (wire.FindUsingRayResult, error)
FindUsingRay fires a pick ray into the body, returning hits nearest first.
mcp:tool body_find_using_ray mcp:summary Fires a pick ray into the body, returning hits nearest first.
func (Body) IsPointInside
func (b Body) IsPointInside(args wire.IsPointInsideArgs) (types.Containment, error)
IsPointInside classifies a point against the body's material (or one shell's bounded region).
mcp:tool body_is_point_inside mcp:summary Classifies a point against the body's material (or one shell's bounded region).
func (Body) List
func (b Body) List() (wire.BodyListResult, error)
List enumerates the active part's bodies.
mcp:tool body_list mcp:summary Enumerates the active part's bodies (name, solid flag, visibility, face/edge counts).
func (Body) LocateUsingPoint
func (b Body) LocateUsingPoint(bodyIndex int, point []float64, entityKind string, proximityTolerance float64) (wire.LocateUsingPointResult, error)
LocateUsingPoint finds the topology entity nearest the point within the proximity tolerance (kind empty = any of vertex/edge/face).
mcp:tool body_locate_using_point mcp:summary Finds the topology entity nearest the point within the proximity tolerance (kind empty = any of vertex/edge/face).
func (Body) MinimumDistance
func (b Body) MinimumDistance(args wire.MinimumDistanceArgs) (wire.MinimumDistanceResult, error)
MinimumDistance returns the closest approach between the body and a transient probe polyline (e.g. a CAM travel path), optionally widened by Radius (the tool cross-section). It is the out-of-process minimum-distance measurement for a transient operand; points, Radius and the result are all in database units (cm). The result is 0 when the probe (after Radius) touches or enters the body's material.
d, _ := c.Body().MinimumDistance(wire.MinimumDistanceArgs{
BodyIndex: 0, Points: []float64{0, 0, 5, 4, 0, 5}, Radius: 0.3,
})
mcp:tool body_minimum_distance mcp:summary Minimum distance between the body and a transient probe polyline (flat x,y,z list in cm); radius widens the probe into a swept-tool cylinder; returns the distance (cm), 0 when it touches or enters the body — the out-of-process projection of MeasureTools.GetMinimumDistance for a transient operand.
func (Body) OffsetPlanarWire
func (b Body) OffsetPlanarWire(args wire.OffsetPlanarWireArgs, closure types.OffsetCornerClosureType) (wire.OffsetPlanarWireResult, error)
OffsetPlanarWire offsets a planar wire by distance in the plane with the given normal, closing gap corners per closure. Set args.Handle to offset a transient body's wire (a section/silhouette result).
mcp:tool wire_offset_planar mcp:summary Offsets a planar wire by distance in the plane with the given normal, closing gap corners per closure.
func (Body) PhysicalProperties
func (b Body) PhysicalProperties(index int, densityGCm3 float64, accuracy string) (wire.MassPropertiesResult, error)
PhysicalProperties returns one body's geometry and mass properties — the per-body counterpart of Model.PhysicalProperties, which sums all bodies (#1078). DensityGCm3 0 uses the part's material density; accuracy is "low"/"medium"/"high" (empty ⇒ medium).
mcp:tool body_physical_properties mcp:summary Geometry and mass properties (volume, area, mass, centroid, inertia) of one body of the active part.
func (Body) RangeBox
func (b Body) RangeBox(args wire.BodyRangeBoxArgs) (wire.BodyRangeBoxResult, error)
RangeBox returns the body's range box (topology, precise or oriented).
mcp:tool body_range_box mcp:summary Returns the body's range box (topology, precise or oriented).
func (Body) Rename
func (b Body) Rename(index int, name string) (wire.BodyInfoResult, error)
Rename sets the display name of the body at index (from List); an empty name reverts to the "Solid{N}" default. The name is stored per body, survives recompute, and round-trips in the document (#1078).
mcp:tool body_rename mcp:summary Set the display name of one body of the active part by index (empty reverts to the default).
func (Body) SetVisible
func (b Body) SetVisible(index int, visible bool) (wire.BodyInfoResult, error)
SetVisible shows or hides the body at index (from List), for multi-body workflows (#158).
mcp:tool body_set_visible mcp:summary Show or hide one body of the active part by index.
func (Body) Shells
func (b Body) Shells(bodyIndex int) (wire.BodyShellsResult, error)
Shells lists one body's face shells (the outer skin and any cavity skins).
mcp:tool body_shells mcp:summary Lists one body's face shells (the outer skin and any cavity skins).
func (Body) StrokeTolerances
func (b Body) StrokeTolerances(bodyIndex int) (wire.FacetTolerancesResult, error)
StrokeTolerances lists the tolerances stroke sets are cached at, ascending.
mcp:tool body_stroke_tolerances mcp:summary Lists the tolerances stroke sets are cached at, ascending.
func (Body) Validate
func (b Body) Validate(bodyIndex, checkLevel int) (wire.ValidateBodyResult, error)
Validate checks the body (checkLevel 1 = topology, 2 = + self-intersection) and reports any offending entities.
mcp:tool body_validate mcp:summary Checks the body (checkLevel 1 = topology, 2 = + self-intersection) and reports any offending entities.
func (Body) Wires
func (b Body) Wires(bodyIndex int) (wire.BodyWiresResult, error)
Wires lists one body's wires (face-less edge chains).
mcp:tool body_wires mcp:summary Lists one body's wires (face-less edge chains).
type Browser
Browser is the add-in browser-pane operation group: declare a named tree shown alongside the host's Model pane and observe node interaction through [wire.BrowserNodeEvent] push events (the ClientBrowserNodeDefinition equivalent, M05-F03 #256).
type Browser struct {
// contains filtered or unexported fields
}
func (Browser) DeletePane
func (b Browser) DeletePane(id string) (wire.OKResult, error)
DeletePane removes an add-in pane.
mcp:tool browser_delete_pane mcp:summary Removes an add-in pane.
func (Browser) ListPanes
func (b Browser) ListPanes() (wire.ListBrowserPanesResult, error)
ListPanes returns every add-in pane in creation order.
mcp:tool browser_list_panes mcp:summary Returns every add-in pane in creation order.
func (Browser) SetPane
func (b Browser) SetPane(pane wire.BrowserPaneSpec) (wire.OKResult, error)
SetPane creates the pane or replaces its whole tree — declared bulk state, like the client-graphics groups.
client.Browser().SetPane(wire.BrowserPaneSpec{
ID: "sim", Title: "Simulation",
Nodes: []wire.BrowserNodeSpec{{ID: "loads", Label: "Loads", Expanded: true}},
})
mcp:tool browser_set_pane mcp:summary Creates the pane or replaces its whole tree — declared bulk state, like the client-graphics groups.
type Caller
Caller is the one dependency a client has on the host: send a JSON method request and get the JSON reply (or an error) — i.e. the transport. An add-in backs it with the host's C-ABI ObkHostCall callback (see include/oblikovati_addin.h); tests back it with a fake. The method strings are the oblikovati.org/api/wire constants.
type Caller interface {
Call(method string, req []byte) ([]byte, error)
}
type Client
Client is a typed façade over a Caller: each method marshals a wire request, calls the host, and unmarshals the wire reply, so add-ins program against Go types instead of hand-rolling JSON. Reach the operation groups via Client.Documents, Client.Parameters, Client.Model, Client.Sketch, Client.Features, Client.Commands, Client.Theme, Client.Appearances, Client.Materials.
type Client struct {
// contains filtered or unexported fields
}
func New
func New(t Caller) *Client
New wraps a transport. Calls on a Client with a nil transport fail with a clear error rather than panicking, so a half-wired add-in is diagnosable.
func (*Client) AddIns
func (c *Client) AddIns() AddIns
AddIns returns the add-in registry operation group.
func (*Client) Analysis
func (c *Client) Analysis() Analysis
Analysis returns the analysis operation group.
func (*Client) Appearances
func (c *Client) Appearances() Appearances
Appearances returns the appearance operation group.
func (*Client) Application
func (c *Client) Application() Application
Application returns the host-application info operation group.
func (*Client) Assembly
func (c *Client) Assembly() Assembly
Assembly returns the assembly derive/shrinkwrap operation group.
func (*Client) AssemblyConstraints
func (c *Client) AssemblyConstraints() AssemblyConstraints
AssemblyConstraints returns the assembly constraint operation group.
func (*Client) AssemblyDrive
func (c *Client) AssemblyDrive() AssemblyDrive
AssemblyDrive returns the assembly drive operation group.
func (*Client) AssemblyFeatures
func (c *Client) AssemblyFeatures() AssemblyFeatures
AssemblyFeatures returns the assembly feature-program operation group.
func (*Client) AssemblyJoints
func (c *Client) AssemblyJoints() AssemblyJoints
AssemblyJoints returns the assembly joint operation group.
func (*Client) Attributes
func (c *Client) Attributes() Attributes
Attributes returns the attribute-set operation group.
func (*Client) Body
func (c *Client) Body() Body
Body returns the body method group.
func (*Client) Browser
func (c *Client) Browser() Browser
Browser returns the add-in browser-pane operation group.
func (*Client) ClientApplications
func (c *Client) ClientApplications() ClientApplications
ClientApplications returns the external-client registry operation group.
func (*Client) ColorSchemes
func (c *Client) ColorSchemes() ColorSchemes
ColorSchemes returns the application color-scheme operation group.
func (*Client) Commands
func (c *Client) Commands() Commands
Commands returns the command operation group.
func (*Client) ContactSets
func (c *Client) ContactSets() ContactSets
ContactSets returns the contact-set operation group.
func (*Client) ContactSolver
func (c *Client) ContactSolver() ContactSolver
ContactSolver returns the contact-solver operation group.
func (*Client) DSJoints
func (c *Client) DSJoints() DSJoints
DSJoints returns the DS-joint operation group.
func (*Client) DesignReps
func (c *Client) DesignReps() DesignReps
DesignReps returns the design-view representation group.
func (*Client) Diagnostics
func (c *Client) Diagnostics() Diagnostics
Diagnostics returns the log/trace operation group.
func (*Client) Dialogs
func (c *Client) Dialogs() Dialogs
Dialogs returns the host-dialog operation group.
func (*Client) Display
func (c *Client) Display() Display
Display returns the display options/settings operation group.
func (*Client) DockableWindows
func (c *Client) DockableWindows() DockableWindows
DockableWindows returns the add-in dockable-window operation group.
func (*Client) Documents
func (c *Client) Documents() Documents
Documents returns the document operation group.
func (*Client) Drawing
func (c *Client) Drawing() Drawing
Drawing returns the drawing-document operation group.
func (*Client) DrawingAnnotations
func (c *Client) DrawingAnnotations() DrawingAnnotations
DrawingAnnotations returns the drawing-annotations operation group.
func (*Client) DrawingDimensions
func (c *Client) DrawingDimensions() DrawingDimensions
DrawingDimensions returns the drawing-dimensions operation group.
func (*Client) DrawingSketches
func (c *Client) DrawingSketches() DrawingSketches
DrawingSketches returns the drawing-sketches operation group.
func (*Client) DrawingStyles
func (c *Client) DrawingStyles() DrawingStyles
DrawingStyles returns the drawing-styles operation group.
func (*Client) DrawingViews
func (c *Client) DrawingViews() DrawingViews
DrawingViews returns the drawing-views operation group.
func (*Client) Environment
func (c *Client) Environment() Environment
Environment returns the image-based-lighting operation group.
func (*Client) ExportDXF
func (c *Client) ExportDXF(args wire.ExportDXFArgs) (wire.ExportDXFResult, error)
ExportDXF writes the active 2D sketch to an ASCII .dxf file.
mcp:tool export_dxf mcp:summary Export the active 2D sketch to a .dxf file at path. version selects the DXF generation ("r2000" or "r2018"; default r2000). Returns how many sketch curves were written.
func (*Client) Features
func (c *Client) Features() Features
Features returns the feature operation group.
func (*Client) Files
func (c *Client) Files() Files
Files returns the file-surface operation group.
func (*Client) FlatPattern
func (c *Client) FlatPattern() FlatPattern
FlatPattern returns the flat-pattern operation group.
func (*Client) Fonts
func (c *Client) Fonts() Fonts
Fonts returns the font operation group.
func (*Client) Freeform
func (c *Client) Freeform() Freeform
Freeform returns the freeform cage-editing operation group.
func (*Client) Graphics
func (c *Client) Graphics() Graphics
Graphics returns the client-graphics group.
func (*Client) Help
func (c *Client) Help() Help
Help returns the help-routing operation group.
func (*Client) ImportDWG
func (c *Client) ImportDWG(args wire.ImportDWGArgs) (wire.ImportDWGResult, error)
ImportDWG imports an AutoCAD .dwg file into the active part's drawing geometry.
mcp:tool import_dwg mcp:summary Import a .dwg file into the active part. A planar drawing becomes a 2D sketch on the chosen plane (plane: a name from list_work_planes, e.g. "XY Plane"; default is the first origin plane), the DWG origin mapping to the plane origin; a drawing with off-plane geometry becomes a 3D sketch. Returns whether it imported as 3D, the entity count, and any skipped-entity warnings.
func (*Client) ImportDXF
func (c *Client) ImportDXF(args wire.ImportDXFArgs) (wire.ImportDXFResult, error)
ImportDXF imports an ASCII .dxf file into the active part's drawing geometry.
mcp:tool import_dxf mcp:summary Import a .dxf file into the active part. A planar drawing becomes a 2D sketch on the chosen plane (plane: a name from list_work_planes, e.g. "XY Plane"; default is the first origin plane), the DXF origin mapping to the plane origin; a drawing with off-plane geometry becomes a 3D sketch. Returns whether it imported as 3D, the entity count, and any skipped-entity warnings.
func (*Client) ImportPDF
func (c *Client) ImportPDF(args wire.ImportPDFArgs) (wire.ImportPDFResult, error)
ImportPDF imports a vector .pdf (a CAD drawing plotted to PDF) into the active part's drawing geometry.
mcp:tool import_pdf mcp:summary Import a vector .pdf file (a CAD drawing plotted to PDF, e.g. from AutoCAD) into the active part. Each page's vector paths become a 2D sketch on the chosen plane (plane: a name from list_work_planes, e.g. "XY Plane"; default is the first origin plane), the page origin mapping to the plane origin. Text and raster images in the page are skipped. Returns the entity count and any per-page warnings.
func (*Client) Interaction
func (c *Client) Interaction() Interaction
Interaction returns the interaction-status operation group.
func (*Client) Interference
func (c *Client) Interference() Interference
Interference returns the interference-analysis operation group.
func (*Client) Keymap
func (c *Client) Keymap() Keymap
Keymap returns the keyboard-customization operation group.
func (*Client) LODReps
func (c *Client) LODReps() LODReps
LODReps returns the level-of-detail representation group.
func (*Client) Lighting
func (c *Client) Lighting() Lighting
Lighting returns the scene-lighting operation group.
func (*Client) Manipulators
func (c *Client) Manipulators() Manipulators
Manipulators returns the custom-gizmo operation group.
func (*Client) Materials
func (c *Client) Materials() Materials
Materials returns the material operation group.
func (*Client) Messages
func (c *Client) Messages() Messages
Messages returns the messaging operation group.
func (*Client) MiniToolbars
func (c *Client) MiniToolbars() MiniToolbars
MiniToolbars returns the mini-toolbar operation group.
func (*Client) Model
func (c *Client) Model() Model
Model returns the model-inspection operation group.
func (*Client) ModelStates
func (c *Client) ModelStates() ModelStates
ModelStates returns the model-state group.
func (*Client) Options
func (c *Client) Options() Options
Options returns the application-options operation group.
func (*Client) Parameters
func (c *Client) Parameters() Parameters
Parameters returns the parameter operation group.
func (*Client) PointClouds
func (c *Client) PointClouds() PointClouds
PointClouds returns the point-cloud method group.
func (*Client) PositionalReps
func (c *Client) PositionalReps() PositionalReps
PositionalReps returns the positional representation group.
func (*Client) Progress
func (c *Client) Progress() Progress
Progress returns the progress-bar operation group.
func (*Client) Ribbon
func (c *Client) Ribbon() Ribbon
Ribbon returns the ribbon operation group.
func (*Client) Scripts
func (c *Client) Scripts() Scripts
Scripts returns the scripting operation group.
func (*Client) SheetMetal
func (c *Client) SheetMetal() SheetMetal
SheetMetal returns the sheet-metal rule operation group.
func (*Client) Sketch
func (c *Client) Sketch() Sketch
Sketch returns the sketch operation group.
func (*Client) Sketch3D
func (c *Client) Sketch3D() Sketch3D
Sketch3D returns the 3D-sketch operation group.
func (*Client) Status
func (c *Client) Status() Status
Status returns the status-bar operation group.