I'm trying to get this equation to go into a macro that will insert it into the properties of a part.
you should follow this:
and you need to add chr(34) for double quote
Chr(34) & "RD1@Annotations@swModel " & Chr(34)
and it should work
Yes, you can
read parameter from equation and add to custoproperties
would this require me to add it to the equations folder?
sorry, I thought you want to read a variable from equations and write it into custom properties
Actually, you just add whatever (string) you want to custom properties using CustomPropertyManager.Add
This is what I have so far
swCustProp.Add3 "LongDescription", swCustomInfoText, "RD1@Annotations@swModel" X "RD2@Annotations@swModel", 1
and when i do this there is an error on the X and if I just put
swCustProp.Add3 "LongDescription", swCustomInfoText, "RD1@Annotations@swModel" , 1
if doesn't grab the actual number.
IF this property already existed, you have to delete it before adding a new one - it's not a replaced value
by the way, why you have "X" out of the quote?
This is what my script looks like and this is after I run it
That is exactly what i have and it just brings up the
in the properties
see my reply, you need to add chr(34) for double quote
Retrieving data ...