.NET

Reply
Active Member
ricobano
Posts: 7
Registered: ‎06-28-2011
Message 1 of 6 (136 Views)

persisting data in cad drawings

136 Views, 5 Replies
04-23-2012 07:03 AM

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?

*Expert Elite*
Alfred.NESWADBA
Posts: 8,984
Registered: ‎06-29-2007
Message 2 of 6 (133 Views)

Re: persisting data in cad drawings

04-23-2012 07:06 AM in reply to: ricobano

Hi,

 

you can use "named objects dictionary" therefor.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Member
ricobano
Posts: 7
Registered: ‎06-28-2011
Message 3 of 6 (132 Views)

Re: persisting data in cad drawings

04-23-2012 07:08 AM 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

*Expert Elite*
Alfred.NESWADBA
Posts: 8,984
Registered: ‎06-29-2007
Message 4 of 6 (128 Views)

Re: persisting data in cad drawings

04-23-2012 07:16 AM 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. :smileyhappy:=

 

>> Do you have any decent links you can share

One special link: >>>click<<< :smileywink:

"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
-------------------------------------------------------------------------
Moderator
Alexander.Rivilis
Posts: 1,406
Registered: ‎04-09-2008
Message 5 of 6 (121 Views)

Re: persisting data in cad drawings

04-23-2012 07:45 AM in reply to: ricobano

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


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
dgorsman
Posts: 5,277
Registered: ‎10-12-2006
Message 6 of 6 (105 Views)

Re: persisting data in cad drawings

04-23-2012 11:21 AM 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.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.