×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

sketch's point from visual basic

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?

 

RE: sketch's point from visual basic

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

RE: sketch's point from visual basic

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources