Modify "Update Titleblock Attributes"

Modify "Update Titleblock Attributes"

jtm2020hyo
Collaborator Collaborator
1,789 Views
15 Replies
Message 1 of 16

Modify "Update Titleblock Attributes"

jtm2020hyo
Collaborator
Collaborator

I found this beautiful lisp: http://www.lee-mac.com/updatetitleblock.html

 

I need to add a column where I can export or import ObjectID and the Handle

 

image.png

 

PD: If possible I need one option to update automatically both: dwg and csv

 

0 Likes
Accepted solutions (1)
1,790 Views
15 Replies
Replies (15)
Message 2 of 16

Moshe-A
Mentor
Mentor

@jtm2020hyo  hi,

 

as far as i know ObjectIds and handles are read only and you can not set them to objects. AutoCAD generate them Automatically.

 

moshe

 

 

 

 

0 Likes
Message 3 of 16

jtm2020hyo
Collaborator
Collaborator

Its possible to modify such lisp to export ALL or SELECTED ITEMS with their IDs?

0 Likes
Message 4 of 16

Moshe-A
Mentor
Mentor

of course it's possible but the question is what would you do with it?  

0 Likes
Message 5 of 16

jtm2020hyo
Collaborator
Collaborator

I might modify each each attribute dones my LibreOffice using the original UTB.lisp linked above.

0 Likes
Message 6 of 16

Moshe-A
Mentor
Mentor

tag names is the best way to modify attributes

0 Likes
Message 7 of 16

jtm2020hyo
Collaborator
Collaborator

I need to link cells with other since LibreOffice, such cells have a one number with was calculated with other formulas. I need to modify like 2000 tags. 

 

Exporting IDs and updating with a CSV I can batch modify tags without errors.

0 Likes
Message 8 of 16

Moshe-A
Mentor
Mentor

what's  LibreOffice?

0 Likes
Message 9 of 16

jtm2020hyo
Collaborator
Collaborator

@Moshe-A wrote:

what's  LibreOffice?


an alternative to MS OFFICE.

 

0 Likes
Message 10 of 16

maratovich
Advisor
Advisor

ID changes every time a file is opened.
If you open the second time the ID file will be different.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 11 of 16

jtm2020hyo
Collaborator
Collaborator

@maratovich wrote:

ID changes every time a file is opened.
If you open the second time the ID file will be different.


does not exist someway to identify any unique object?

...maybe for example : rotation-position.

0 Likes
Message 12 of 16

maratovich
Advisor
Advisor

Unique object parameter - handle (it does not change when opening a file)
We do not know your ultimate goal.
We need to understand the whole process.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 13 of 16

jtm2020hyo
Collaborator
Collaborator

@maratovich wrote:

Unique object parameter - handle (it does not change when opening a file)
We do not know your ultimate goal.
We need to understand the whole process.


I need identify each object of anyway. Then use a Lisp to export to CSV or Excel format (for example, export: dwg name,atribute tags , layout, uniqueID, block name), that dates of ALL or SELECTED objects. After that I need modify directly the CSV or Excel file and use the same lisp to import and update such dates. 

 

...Or in resumen, I need export dates, modify in Excel and import dates.

 

 

0 Likes
Message 14 of 16

jtm2020hyo
Collaborator
Collaborator

...here I leave 2 attached files.

 

I need to export an excel format or .csv file, then update or combine dates of "SAMPLE.CSV" and "CUADRO DE CARGAS - MUSEO.xlsx", then import to the dwg.

0 Likes
Message 15 of 16

ronjonp
Mentor
Mentor
Accepted solution

Have you tried the commands 'ATTIN' and 'ATTOUT' ? 

Message 16 of 16

jtm2020hyo
Collaborator
Collaborator

@ronjonp wrote:

Have you tried the commands 'ATTIN' and 'ATTOUT' ? 


thanks, sir.
This work as I need.

0 Likes