AutoCAD MEP General Discussion

AutoCAD MEP General Discussion

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

Add brackets to Property Set Definitions for tag

348 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,146
Registered: ‎03-13-2008
Message 2 of 5 (343 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: 138
Registered: ‎02-26-2007
Message 3 of 5 (336 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,146
Registered: ‎03-13-2008
Message 4 of 5 (333 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: 138
Registered: ‎02-26-2007
Message 5 of 5 (330 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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
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.