Extract the attributes, and written table(or output excel) BOM ?
I think like this :
1step. run command
2step. choose all drawing in mode space. (crossing )
3step. Enter the text height (Text style is SIMPLEX, is style ,not font )
4step. Select (a) pick a baskpoint insert table (b)or output excel
Essential
1.Use Drawing number from top to bottom order arrange
Sort by the last three digits of drawing No.
eg.
1-SS706A-001
3-SS706A-002
2-SS706A-003
1-SS706A-004
1-SS706A-005
2.Check the PARTNAME , if have Duplicate PARTNAME ,SO Pop-up tips.
3.Check the DRAWING NO , if have Duplicate DRAWING NO ,SO Pop-up tips.
4.If insert table, Must: Layer is DIM , Text style is SIMPLEX, (is style ,not font )
Many thanks for help me!!!
See Attachments. for test.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
Solved by hmsilva. Go to Solution.
Hello.
See if this post can help you.
For attribute management, the simplest tool is ATTOUT in Express Tools.
Just export attributes with ATTOUT, then adjust the table in Excel including hiding some rows/columns to suit your need, then copy/paste the table from Excel.
Hi emk2012,
the attached is just a 'demo' and a starting point for you.
Try to read the code (don't just run code), try to understand the way how to collect the attributes, the desired tags, build a list with the attribute values,...
To write to excel, i did use Gilles Chanteau's gc:WriteExcel.
Hope that helps
Henrique
Hi emk2012
'Can you give me a full version ?'
the 'demo' is functional, with your TEST1.dwg works as expected.
'Erreur: too few actual parameters'
this error returns from Gilles's gc:WriteExcel function, possibly you are calling the function without one of the required parameters, did you try the code with your TEST1.dwg and without modifying the code?
Henrique
@Anonymous wrote:
(setq xlapp (vlax-get-or-create-object "Excel.Application"))
I think is about office , my PC in not install "Microsoft Office" is "openoffice"
Hi emk2012,
I never used "openoffice", so I can't assist on this, hopefully someone else can.
Henrique