.NET

Reply
Active Member
WRonX
Posts: 7
Registered: ‎06-21-2011
Message 1 of 1 (99 Views)

Inserting MText with CustomProperty (from SummaryInfo) as Contents?

99 Views, 0 Replies
10-07-2011 07:22 AM

Hi.

 

I need to insert MText field into a drawing and connect it with CustomProperty (isn't it called DWGprops?) field from the file (so when I change the value, that field will update on next fileOpen). Unfortunately, I completely don't know how to connect those two things. I mean - I can insert MText and I can read/add/change CustomPropertu from SummaryInfo, but I can't create a link.

 

I tried to use code from Kean's blog, changing table cell to MText, but with no effect - if I have custom field, for example key is "WHO_CHANGED_RECENTLY" and value is "John Doe", it is not in the BlockTable (from mentioned blog - bt.Has["WHO_..."] returns false). And when I read it from SummaryInfoBulider - I don't know how to get it's objId... Trying to view manually inserted field's properties in the debugger also didn't work for me.

 

Can you help me with that?

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!