Reply

Property text + Variables from active document = fail

Hi,

I've a callout with property text wich contains variables from the active document (these from the variable table). The result shown in the preview looks like it should, but after accepting it, the callout is shown w/o the variables. When editing the callout the variables are replaced by a generic or wildcard.

My variables:
Type="Var" ; Name="M_l" ; Value="125"
Type="Var" ; Name="M_s" ; Value="12"
Type="Var" ; Name="M_DA" ; Value="3596"
Type="Dim" ; Name="Dim_M_l" ; Value="=M_l"
Type="Dim" ; Name="Dim_M_s" ; Value="=M_s"
Type="Dim" ; Name="Dim_M_DA" ; Value="=M_DA"

Property text syntax:
Manschette %{M_l|V} x %{M_s|V}, DA %{M_DA|V}, Material: St 37.1

Property text preview:
Manschette 125 x 12, DA 3596, Material: St 37.1

Callout after accepting:
Manschette x , DA , Material: St 37.1

Property text syntax when editing:
Manschette %{V0|V} x %{V0|V}, DA %{V0|V}, Material: St 37.1

--> all variables has been replaced with "V0"

What's wrong? How can i solve this?

Thank you!

Best regards,
Robert Goldbach
7 REPLIES

Re: Property text + Variables from active document = fail

Hi Robert,

Did you expose the variables in the variable table? Can you post the file to the newsgroup?

Re: Property text + Variables from active document = fail

[ Edited ]
No, i didn't exposed them (haven't found out yet what's good for)

I've attached the file. In this file you can test also the problems described in some of my other threads:

Alignment of attributes in block (see edit in OP)
http://bbsnotes.ugs.com/vbulletin/showthread.php?t=44793

Geometry locked but still moving
http://bbsnotes.ugs.com/vbulletin/showthread.php?t=44921

Thank you!

Best regards,
Robert Goldbach

Re: Property text + Variables from active document = fail

Hi Robert,

Variables in the Variable table cannot be accessed directly by property text. You must expose them first. Then the system generates a Custom Property using the "Expose Name". If you look at the File Properties dialog (Application Button->Properties->File Properties) and go to the Custom tab, you will see your exposed variables listed. Unless you expose the variables so they become custom properties, they will not work in Property Text. Once they are exposed, you should be able to select them from the list of available properties in the Property Text dialog box available from the Callout Properties dialog box.

Hope this helps. I will visit the other threads and take a look at the rest of your issues with this file.

Andy.

Re: Property text + Variables from active document = fail

Ah, ok, thank you.

Just for understanding: what else can the variables from the active document used for as long as they are not exposed? Otherwise I'd suggest to hide the unexposed variables.

Best regards,
Robert Goldbach

Re: Property text + Variables from active document = fail

Hi there,

I ran into the same problem just trying to follow the Goal Seek tutorial (seddbgs.dft, the one with the pulleys).
I'm doing exactly as instructed but the property is failing to display. It previews just fine, but after placing the callout the property name is replaced with V0.

Interestingly, if I place the Callout text: BELT LENGTH=%{A2680_Perimeter|V}
and then place the exact same in Callout text 2, the end result looks like this:
BELT LENGTH= (A2680_Perimiter replaced by V0)
BELT LENGTH=1581.49 (A2680_Perimiter still intact)

If I then remove all text in Callout text, Callout text 2 will now be replaced by V0 as well, so again end up with an empty:
BELT LENGTH=

I can work around it by Exposing A2680_Perimeter, and inserting A2680_Perimeter from the 'From active document' list ( %{A2680_Perimeter/CP} ) to get it to work, but it seems like an unnecessary workaround (and there's no mention of it in the tutorial).

Bug or feature?

Re: Property text + Variables from active document = fail

[ Edited ]
Robert,
What version are you running?
You do not have to expost variables from the current document.
This is what the '|V' in the string does for you. It extracts directly from the variable table.
I have attached an image from ST5.
The image shows the variable table, callout display, and callout properties.
I am reloading ST3 and will it test there.
I'll let you know what I discover in ST3.

Regards,
Rick B.

Re: Property text + Variables from active document = fail

I verified that this is a bug in ST3 (V103) release of the software.
The variable table reference in the callout will be changed to V0.
I also verified that it is fixed in ST4.
Solid Edge 2D Drafting ST4 will be released soon.

Regards,
Rick B.