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: 

Drilling down with ilogic mates

3 REPLIES 3
Reply
Message 1 of 4
SharkDesign
272 Views, 3 Replies

Drilling down with ilogic mates

I've named some edges and trying to use the following code

Constraints.AddInsert("Insert1", "SRF 11 09:1", "B1FTH", "SRF 70 22:1", "LockTopHole",
axesOpposed := True, distance := 0.0, lockRotation := False, biasPoint1 := Nothing, biasPoint2 := Nothing)

Works perfectly on parts, but if the part is inside a sub assembly it can't see it. 

I tried makepath but that didn't work either. Any ideas, or is it not possible?

  Expert Elite
  Inventor Certified Professional
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: SharkDesign

You have to use CreateGeometryProxy. For example:

Call oContainingOcc.CreateGeometryProxy(Feature,ProxyFeature)

This returns ProxyFeature that you will have to use when part is is within assembly.

Message 3 of 4
SharkDesign
in reply to: Anonymous

So does that look something like?

 

Part:1.CreateGeometryProxy(Face1,ProxyFeature)
  Expert Elite
  Inventor Certified Professional
Message 4 of 4
Anonymous
in reply to: SharkDesign

Yes. Just make sure that Part:1 is correct name for occurrence object variable.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report