AutoCAD MEP General Discussion

AutoCAD MEP General Discussion

Reply
Distinguished Contributor
RocksterB
Posts: 160
Registered: ‎02-26-2007
Message 1 of 5 (359 Views)
Accepted Solution

Add brackets to Property Set Definitions for tag

359 Views, 4 Replies
08-09-2012 05:20 AM

I have a value in a tag I created with a property set definition formula that need text brackets around it. For ex. [1234]. What do I add to the formula to accomplish this?

You can modify your formula to something like this.

 

"[" & "[Original Formula]" & "]"

 

 

The quotes around your formula will cast it to a string and then you can add the brackets to the front and the back.

 

 

*Expert Elite*
Keith.Brown
Posts: 1,237
Registered: ‎03-13-2008
Message 2 of 5 (354 Views)

Re: Add brackets to Property Set Definitions for tag

08-09-2012 09:51 AM in reply to: RocksterB

You can modify your formula to something like this.

 

"[" & "[Original Formula]" & "]"

 

 

The quotes around your formula will cast it to a string and then you can add the brackets to the front and the back.

 

 


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Distinguished Contributor
RocksterB
Posts: 160
Registered: ‎02-26-2007
Message 3 of 5 (347 Views)

Re: Add brackets to Property Set Definitions for tag

08-09-2012 11:30 AM in reply to: Keith.Brown

That worked perfectly. Thanks!

*Expert Elite*
Keith.Brown
Posts: 1,237
Registered: ‎03-13-2008
Message 4 of 5 (344 Views)

Re: Add brackets to Property Set Definitions for tag

08-09-2012 11:53 AM in reply to: RocksterB

Glad that it worked out.  You can find alot of information about property sets and using vbscript in them in if you browse the autocad architectural custimization forums. 

 

I also visit this site alot to find out about vbscript.  http://www.w3schools.com/vbscript/vbscript_ref_functions.asp


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Distinguished Contributor
RocksterB
Posts: 160
Registered: ‎02-26-2007
Message 5 of 5 (341 Views)

Re: Add brackets to Property Set Definitions for tag

08-09-2012 11:55 AM in reply to: Keith.Brown

Thanks for share and your tips.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD MEP Category!

The AutoCAD MEP forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.