Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sketch's point from visual basic 1

Status
Not open for further replies.

666vito

Industrial
Jul 23, 2007
21
0
0
IT
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?


 
Hi,

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
 
Sorry for my English. I try to be more precise. I try to create a 2d cat programming in visual basic 6.I use solid edge 14.I have a file asm and in this file a create a sketch to represent my chain of tolerances.This sketch is composire of only line, so I'd like to obtain the
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
 
Status
Not open for further replies.
Back
Top