.NET

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

persisting data in cad drawings

148 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: 9,371
Registered: ‎06-29-2007
Message 2 of 6 (145 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 (144 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: 9,371
Registered: ‎06-29-2007
Message 4 of 6 (140 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,446
Registered: ‎04-09-2008
Message 5 of 6 (133 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,592
Registered: ‎10-12-2006
Message 6 of 6 (117 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.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!