Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Counting Entities in the Drawing Template

Status
Not open for further replies.

imlabs

Computer
Aug 8, 2002
5
How to read the entity properties in the Drawing Template
 
Replies continue below

Recommended for you

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.
 
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...?
 
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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor