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: 

intersection point using VBA

3 REPLIES 3
Reply
Message 1 of 4
mohandis2
1713 Views, 3 Replies

intersection point using VBA

In assembly mode, how can I click on two lines in a part sketch and get there intersection point using VBA?

Regards.

 

 

3 REPLIES 3
Message 2 of 4

Use the SketchLine.Geometry.IntersectWith method. The Geometry property returns a transient object that exposes methods to perform mathematical computations.

 

The Module 4 (BRep) of the Inventor API Training Material has an example of that: the lab exercise for that module consists in finding intersection between a circle and a line from a sketch.

 

https://github.com/ADN-DevTech/Inventor-Training-Material/tree/master/Module%2004%20-%20BRep

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
adam.nagy
in reply to: mohandis2

Hi,

 

Is it something you can do through the UI? If so, then could you please provide the exact steps?

I thought maybe you wanted to place a workpoint at the intersection - in the UI it only seems to be possible if both sketch lines are from the same part.

 

Cheers,

 



Adam Nagy
Autodesk Platform Services
Message 4 of 4
mohandis2
in reply to: mohandis2

Here 's what I want to achieve,

In curtain wall I want use iCopy or iAssembly to inset panels that differ in only dimensions and some other miner things, I don't want to insert every single panel manually because it takes a long time, I want to make a VBA Application that will discover rectangles in a skeleton sketch, insert my iCopy or iAssembly and constrain it to 3 of the vertex points of each rectangle, any help will be appreciated.

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

Post to forums  

Autodesk Design & Make Report