×
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

Identify/Count the Objects/Entities Drawn in Drawing Template SW2001+

Identify/Count the Objects/Entities Drawn in Drawing Template SW2001+

Identify/Count the Objects/Entities Drawn in Drawing Template SW2001+

(OP)
Currently i am using Solidworks 2001 Plus.

I would like to know whether it is possible to identify/count all the objects/entites as well as obtain their individual properties that are present in a drawing template using Visual Basic Code (without selecting the objects/entities).

If so what functions needs to be used ? It would be of great help, if a code snippet as an instance can be given

RE: Identify/Count the Objects/Entities Drawn in Drawing Template SW2001+

Yes, this is possible, but will take some time to write. I don't think that you will get a complete answer to this question because it has a rather large solution.

In short, you will use ModelDoc.GetFirstView to obtain the drawing template. Once you have the Drawing View object, you can use all of the Get... methods to obtain each drawing object. Once you have those objects, you can obtain the information for each object.

Take a look at the SolidWorks API Help from the SW Help Menu. Use the SolidWorks Objects section to see what objects, methods and properties are available. There is sample code, although sometimes lacking, that can get you started. If you have a specific question regarding obtaining a particular object or property, let us know.

Good luck...

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

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