AutoCAD MEP General Discussion

AutoCAD MEP General Discussion

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

Add brackets to Property Set Definitions for tag

355 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,195
Registered: ‎03-13-2008
Message 2 of 5 (350 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: 159
Registered: ‎02-26-2007
Message 3 of 5 (343 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,195
Registered: ‎03-13-2008
Message 4 of 5 (340 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: 159
Registered: ‎02-26-2007
Message 5 of 5 (337 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!