I was wondering if someone had sample code that extracts non-block data from a drawing and exports it to a text file or excel file. I've searched the iQuestion database and found a similar question with an answer that pointed to a different iQuestion but the link is dead...
Specifically, I’m wanting to extract wire numbers from electrical drawings. The wire numbers are SimpleNote objects and with desired "Text" and they are on their own layer “WireNum” in the drawing.
We do have premium license and running version V1R5.2 x64
I was playing with GetProperties in the command window. If I enter GetProperties and select the item(s) in the drawings, hitting enter returns the properties of the objects.
: GETPROPERTIES
Specify entities»
1 found
Specify entities»
|
SIMPLENOTE | |
|
Handle |
174BE |
|
Mode |
Model |
|
Layer |
WireNum |
|
LineColor |
ByLayer |
|
LineStyle |
ByLayer |
|
LineWeight |
ByLayer |
|
Transparency |
ByLayer |
|
TextStyle |
Standard |
|
Typeface | |
|
Font file |
txt |
|
Start point |
X=2031.1304 Y=1017.0781 Z=0.0000 |
|
height |
1.2000 |
|
text |
P_I:6.1 |
|
rotation angle |
0 |
|
width scale |
1.0000 |
|
obliquing angle |
0 |
