Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a WorkPointProxy from center of circle or arc

1 REPLY 1
Reply
Message 1 of 2
planglais75
353 Views, 1 Reply

Create a WorkPointProxy from center of circle or arc

Hi,

 

I try the create a WorkPointProxy from the center of an arc and use this proxy to add a constraint with an other part.

 

But I don't know how to create the WorkPointProxy.

 

 

Dim app As Inventor.Application = GetObject(, "Inventor.Application")
Dim doc As Inventor.AssemblyDocument = app.ActiveDocument
Dim occ As Inventor.ComponentOccurrence = doc.ComponentDefinition.Occurrences(1)
Dim body As Inventor.SurfaceBody = occ.SurfaceBodies(1)
Dim edge As Inventor.Edge = body.Edges(47)
Dim pt As Inventor.Point = CType(edge.Geometry, Object).Center
Dim workPointProxy As Inventor.WorkPointProxy = Nothing

'This command doesn't work
occ.CreateGeometryProxy(pt, workPointProxy)

 

 Thanks,

 

Pascal

1 REPLY 1
Message 2 of 2
planglais75
in reply to: planglais75

In others words :

 

I want to make a constraint on center of an edge.

 

 

Thanks,

 

Pascal

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report