sketch's point from visual basic
sketch's point from visual basic
(OP)
Hi.. I have a problem, using visual basic I try to obtain same information from aseembly file of solid edge.. I have a sketch on the assembly file,and I'd like to have the position of the sketch's point from visual basic.More just from visual basic i interrogate a solid edge file to obtein the position of a sketch's points.. Can do it??
It is possible?? and how?
It is possible?? and how?





RE: sketch's point from visual basic
quite unclear what you would like to obtain. A sketch consists
of lines, arcs, splines, circles and so on. So to obtain the
start/end point say from a line you must be in sketch mode because
the asm does not have a collection object of all asm sketches.
Next you have to walk through the lines2D collection of the sketch.
Sample:
MsgBox <seApp>.ActiveDocument.ActiveSketch.Lines2d.Count
will show the count of all lines within the sketch.
OTH you may select one line/arc/circle ... interactivly and get
the req. information by retrieving the object from the selectset,
check its type and then call the appropriate method(s)
dy
RE: sketch's point from visual basic
start/end point of a line automatically from my programm.
In this way i can obtain the position of start/end point (in whichever sistem of cordinates it isn't important) and my programm can work.
thanks