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: 

Trying to Set the Reference for Reference Text c#

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
brianchapmandesign
956 Views, 20 Replies

Trying to Set the Reference for Reference Text c#

Can't seem to find where to set the actual reference for a reference text... I've drilled down to the specific component but don't see any options

Anyone know how to do this?

 

                                        foreach (ObjectId parts in mycomponents)
                                        {
                                            try
                                            {
                                                LabelStyleComponent mytext = tr.GetObject(parts, OpenMode.ForWrite) as LabelStyleComponent;
                                                 if (mytext.GetType().ToString() == "Autodesk.Civil.DatabaseServices.Styles.LabelStyleReferenceTextComponent")
                                                {
                                                    LabelStyleReferenceTextComponent fnltext = mytext as LabelStyleReferenceTextComponent;
                                                    
                                                    
                                                }

                                            }
                                            catch
                                            {
                                            }

 


"Very funny, Scotty. Now beam down my clothes.
20 REPLIES 20
Message 21 of 21
brianchapmandesign
in reply to: Jeff_M

Okay 🙂 Will do... really appreciate it... i have a "big presentation"
tomorrow you just saved my rear

"Very funny, Scotty. Now beam down my clothes.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report