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

Access Note Label text via .NET

1 REPLY 1
SOLVED
Reply
Message 1 of 2
stacy.dunn
503 Views, 1 Reply

Access Note Label text via .NET

I am working on a routine to search and replace text in NoteLabel.  I have found where I can replace the text by using SetTextComponentOverride(), but I cannot find a read or get method. 

 

I am hoping that there is something that I am missing so I don't have to use COM.

Stacy Dunn
1 REPLY 1
Message 2 of 2
Jeff_M
in reply to: stacy.dunn

The GetTextComponentOverride() method returns the unformatted string for the TextComponent. Note that it returns a value even if it is not overridden. Unformatted means that if the label is set to display the Northing, the text returned is not the northing, rather it is the expression shown in the LabelStyleComposer when adding the Property to display.

Jeff_M, also a frequent Swamper
EESignature

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report