I use the Pre-Defined Remark parameters to allocate different values to objects. I have previously created new Model Object filters to assist with assigning labels.
I have trying to a write the script that createsthat filter, although I am not having luck. I saw in a video that Pre-Defined Remarks had some pre loaded values, 'Denotation1' 'Denotation2' etc however I am thinking this parameter class must go by a different name and not 'Denotation'.
Here is my attempt that doesn't work:-
Function checkElement(Obj)
bValid = False
' Check if the Denotation property is 'Welded Assembly'
If Obj.Denotation = "Welded Assembly" Then
bValid = True
End If
checkElement = bValid
End Function
I have looked in the Advance Steel COM API Reference Guide to see if I could figure it out but I have no joy as yet so seeking help with this.
Are the eAttributeCodes where I should be looking?
As a side note, in the .XSLT videos they used the Pre-Defined Remark parameter and they seem to call it 'annotation' in their .XSLT script which didn't make sense to me.
Solved! Go to Solution.
I use the Pre-Defined Remark parameters to allocate different values to objects. I have previously created new Model Object filters to assist with assigning labels.
I have trying to a write the script that createsthat filter, although I am not having luck. I saw in a video that Pre-Defined Remarks had some pre loaded values, 'Denotation1' 'Denotation2' etc however I am thinking this parameter class must go by a different name and not 'Denotation'.
Here is my attempt that doesn't work:-
Function checkElement(Obj)
bValid = False
' Check if the Denotation property is 'Welded Assembly'
If Obj.Denotation = "Welded Assembly" Then
bValid = True
End If
checkElement = bValid
End Function
I have looked in the Advance Steel COM API Reference Guide to see if I could figure it out but I have no joy as yet so seeking help with this.
Are the eAttributeCodes where I should be looking?
As a side note, in the .XSLT videos they used the Pre-Defined Remark parameter and they seem to call it 'annotation' in their .XSLT script which didn't make sense to me.
Solved! Go to Solution.
Solved by Flies-Eyes. Go to Solution.
This is what the BOM editor is telling me, this could explain the 'Annotation' class in the .XSLT video.
Is this telling me that the Pre-Defined Remark object class is called 'Annotation'?
This is what the BOM editor is telling me, this could explain the 'Annotation' class in the .XSLT video.
Is this telling me that the Pre-Defined Remark object class is called 'Annotation'?
I tried this script but still no joy.
Function checkElement(Obj)
bValid = False
' Check if the Pre-Defined Remark property is 'Welded Assembly'
If Obj.Annotation = "Welded Assembly" Then
bValid = True
End If
checkElement = bValid
End Function
I tried this script but still no joy.
Function checkElement(Obj)
bValid = False
' Check if the Pre-Defined Remark property is 'Welded Assembly'
If Obj.Annotation = "Welded Assembly" Then
bValid = True
End If
checkElement = bValid
End Function
This is what I found in the .XSLT video.
"singlepart [(part/annotaton = 'Denotation1')]"
I am not sure what this is trying to tell me.
This is what I found in the .XSLT video.
"singlepart [(part/annotaton = 'Denotation1')]"
I am not sure what this is trying to tell me.
After further testing overnight, I have come to the conclusion the correct class is Obj.Note.
After further testing overnight, I have come to the conclusion the correct class is Obj.Note.
The result....
Can't find what you're looking for? Ask the community or share your knowledge.