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

SDF Creation

1 REPLY 1
Reply
Message 1 of 2
Anonymous
187 Views, 1 Reply

SDF Creation

Is there a way to concatenate block attribute data through the "map2sdf" command?

I have a block with the attributes of @ssttr and @manhole and I'm trying to write a script that will allow me to concatenate the following....
@ssttr & "-" & @manhole

I've tried using the strcat command in numerous different fashions, but it doesn't seem to work when I look at the SDF and SIF files in MapGuide Author.

Has anyone ever concatenated block attributes in a script for MapGuide?

Thanks for any help!
Bob
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Hi,

Convert the existing Block Attribute data to Object data and then try using the below script to extract data from Object Data.

(strcat (strcat (strcat (strcat (strcat "TagNumber" :Tag_Number@Test) "\nManufacturer" :Manufacturer@Test) "\nEquipment_Description" :Equipment_Description@Test) "\nItem_Type" :Item_Type@Test) "\nRoom" :Room@Test)

where Tagnumber is the name to show as tooltip before the original retrieved Tag_Number from the object data table name test with field name Tag_Number.

Hope this solves your problem.

GoodLuck,
Regards,
Krnkishore.

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

Post to forums  

Autodesk Design & Make Report

”Boost