.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

persisting data in cad drawings

5 REPLIES 5
Reply
Message 1 of 6
ricobano
497 Views, 5 Replies

persisting data in cad drawings

Is it possible to persist a custom object within CAD at a per drawing level?  Basically we want to create a web service that pulls in a project name / project number etc etc from our project management software and persist this to the cad drawing itself so it is available when reopened?

5 REPLIES 5
Message 2 of 6
Alfred.NESWADBA
in reply to: ricobano

Hi,

 

you can use "named objects dictionary" therefor.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 6
ricobano
in reply to: Alfred.NESWADBA

ok.  So anything stored in the dictionary gets saved automatically?  Im just doing a search for this now in google.  Do you have any decent links you can share.  Apologies completly new to CAD development

Message 4 of 6
Alfred.NESWADBA
in reply to: ricobano

Hi,

 

>> So anything stored in the dictionary gets saved automatically?

Saved automatically is not correct, it is saved with the drawing, but only if the user saves the drawing. :)=

 

>> Do you have any decent links you can share

One special link: >>>click<<< 😉

"Through the Interface" is always a great site for all dotNET-stuff for AutoCAD, and there are a lot more listed. Let us know, if you have troubles while writing your specific code, but as a global help you have now links the get deeper into NOD's.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 6

Another solution is DatabaseSummaryInfo custom properties. Information stored in DatabaseSummaryInfo can be read without AutoCAD as a dwg-file properties with Explorer.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 6 of 6
dgorsman
in reply to: ricobano

Data can be saved; how that data is manipulated i.e. program cannot.  So the drawing can go elsewhere but if the program (AutoCAD, for example) doesn't have the plug-in or object enabler then nothing will happen with that data.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost