AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to rename Object Data?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
АлексЮстасу
657 Views, 2 Replies

How to rename Object Data?

Hi,

How to programmatically rename Object Data?

How to rename manually in ADEDEFDATA I know.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

2 REPLIES 2
Message 2 of 3

Hi;

 

Try out about this algorithm:

1) Get AcMapODTable
2) Get GetTableODRecordIterator for this table
3) Init iterator
4) Get AcMapODTableRecord with iterator
5) Iterate AcMapODTableRecord in loop
5.1) Get AcMapODTableDefinition from table
5.2) Get current AcMapODColumnDefinition with tableDef.GetColumn(colDef, i)
5.3) Check name of current AcMapODColumnDefinition
5.4) If this is your wanted name, rename it with SetName() method.

Message 3 of 3

Thank you!

  

In ADN, I was also advised to use the AcMapODContainer :: RenameODTable method - to directly rename Object Data.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

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

Post to forums  

Autodesk Design & Make Report