×
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

Counting Entities in the Drawing Template

Counting Entities in the Drawing Template

Counting Entities in the Drawing Template

(OP)
How to read the entity properties in the Drawing Template

RE: Counting Entities in the Drawing Template

Huh? Do you want a program (macro) to count the entities on a drawing? What entities do you want to count? Do you want to include notes, weld symbols, balloons, etc? Please be a little more specific and include the version of SW you are working with.

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

RE: Counting Entities in the Drawing Template

(OP)
We are using SW 2001 Plus. We have drawn two circles on the drawing template.  Give us a code snippet in VB to read the properties (Like radius and center coordinates) of the circles...?

RE: Counting Entities in the Drawing Template

Check out Thread559-27994. I wrote a macro to measure selected entities and report the result in multiple units. In there, you will find a snipit on getting the information from a circle. You will have to get the curve object from the DrawingDoc, which should not be that difficult.

It is hard to write code to your specific request without more information:
1. Are these the only two circles on the drawing?
2. Are they in a drawing view or a drawing template?
3. Will the user select the two circles before running the macro, or should the macro find them automatically?

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

RE: Counting Entities in the Drawing Template

(OP)
We have created a new Drawing Template.  And We drawn two circles on the sheet.
Using our code, we should able to see the properties of the circles.

* There are only two circles in the drawing sheet.
* We clicked a new Template of drawing
* User not select any circle. Macro itself should find it out.

Give a suggestions please.

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