In assembly mode, how can I click on two lines in a part sketch and get there intersection point using VBA?
Regards.
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.
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,
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.