Possible Bug in VBS using Property Set Data and MV-Blocks

Possible Bug in VBS using Property Set Data and MV-Blocks

jtm2020hyo
Collaborator Collaborator
650 Views
6 Replies
Message 1 of 7

Possible Bug in VBS using Property Set Data and MV-Blocks

jtm2020hyo
Collaborator
Collaborator

I found an problem with VBS that stop me of use Property Set Data and I can not find method to avoid. (image 3)

 

image 1 : In this image everything works correctly, I can use this formula to Tag my Block Object.

jtm2020hyo_0-1640092537963.png

 

but when I use this in model space happen this:

 

image 2 : in this image everything works correctly

jtm2020hyo_1-1640092615368.png

 

image 3 : In this image appears the error, in the formula "Concatenate_Name_Error" appears correctly the Tag that I wish use ("A-01"), but in the MV-Block appears something weird, appears just "-1", and I tried everything that I found in the Internet and this is the last hope to fix.

 

jtm2020hyo_2-1640092675389.png

 

Image 4: Another error when dash minus is ahead any letter and a digit. (result is "0.000" but should be "-A01")

 

jtm2020hyo_0-1640093168996.png

 

 

 

and this error/bug not just appears concatenating, always that a variable have value letter, dash minus/plus sign, and a number, appear this error.

 

How to fix this?

 

0 Likes
Accepted solutions (1)
651 Views
6 Replies
Replies (6)
Message 2 of 7

David_W_Koch
Mentor
Mentor

Interesting.  It took a while to sort out what all was going on.

 

I do not have a solution, but it appears as though the line feed character is causing some issues.  Oddly, when displaying the JTM_0D:.Tag_Name property value in the tag, the instance with the line feed works, but the one without it fails.

 

I cannot spend more time on this at the moment, but with luck I will have some time either on the weekend or next week to revisit this.  Maybe someone else can tease out what the problem is before then.  I would suggest using one or more separate properties and Attribute Definitions to display the items on a second (or third, etc.) line, but perhaps that does not work well with your anticipated work flow.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 7

dbroad
Mentor
Mentor

Is there a reason you need 12 name parts?  I can't even figure out what the intent of the labelling scheme is or what it should look like. If your tag had referenced the JTM-Name Property Set, it would work fine. Somehow, referencing another property set's formula is causing problems. Is there any reason that you really need the JTM_0D property set?

Architect, Registered NC, VA, SC, & GA.
Message 4 of 7

Gepaha
Collaborator
Collaborator

return [JTM-NAME:CONCATENATE_NAME_ERROR] how text ( in quotes), like this:

"[JTM-NAME:CONCATENATE_NAME_ERROR]"

Erros VBS Rev 01.JPG

Message 5 of 7

jtm2020hyo
Collaborator
Collaborator

Yes, and Yes.

In Electrical Plan Design, at least here in Perú, specialists ask for many info for object and something is need create many many many Labels/Text/Mv-Block to leave plot info.

 

In my workflow is need create the main-property_set_data and other for each ACAD object type, this because ACA and AMEP try add properties nested objects inside Block_Reference.

 

As mentioned @Gepaha , I could add quotes to the JTM_0D_Property, but doing that appears this another error:

 

 

Image 5: multline (left) Mv-Block have error but other are solved.

 

jtm2020hyo_0-1640178809037.png

 

I think I could solve this with another Function to filter quotes, but this problem described in this post appear in all formulas, and not sure how should I solve this.

0 Likes
Message 6 of 7

dbroad
Mentor
Mentor

Good luck. My wife and I visited Peru in 2018 and loved it.  I can see the problems are having but don't have any other solutions.  Have you tried adding a checkmark for electrical devices to the applies to for JTM-Name?

Architect, Registered NC, VA, SC, & GA.
Message 7 of 7

Gepaha
Collaborator
Collaborator
Accepted solution

I have used relatively complex formulas involving using multiline text formatting but always returning the property formula directly without involving another propertyset.

I think it is possible to avoid the problem by directly using the multiviewblock attribute JTM-NAME:CONCATENATE_NAME_ERROR without involving another propertyset.