Advance Steel Forum
Welcome to Autodesk’s Advance Steel Forums. Share your knowledge, ask questions, and explore popular Advance Steel topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DetObjQualifierFilter (Pre-Defined Remark)

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Flies-Eyes
331 Views, 5 Replies

DetObjQualifierFilter (Pre-Defined Remark)

Flies-Eyes
Advisor
Advisor

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.  

 

 

0 Likes

DetObjQualifierFilter (Pre-Defined Remark)

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.  

 

 

5 REPLIES 5
Message 2 of 6
Flies-Eyes
in reply to: Flies-Eyes

Flies-Eyes
Advisor
Advisor

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'?

 

FliesEyes_0-1712909185292.png

 

0 Likes

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'?

 

FliesEyes_0-1712909185292.png

 

Message 3 of 6
Flies-Eyes
in reply to: Flies-Eyes

Flies-Eyes
Advisor
Advisor

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

0 Likes

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

Message 4 of 6
Flies-Eyes
in reply to: Flies-Eyes

Flies-Eyes
Advisor
Advisor

This is what I found in the .XSLT video.  

 

"singlepart [(part/annotaton = 'Denotation1')]"

 

I am not sure what this is trying to tell me.

 

 

 

FliesEyes_0-1712909753267.png

 

0 Likes

This is what I found in the .XSLT video.  

 

"singlepart [(part/annotaton = 'Denotation1')]"

 

I am not sure what this is trying to tell me.

 

 

 

FliesEyes_0-1712909753267.png

 

Message 5 of 6
Flies-Eyes
in reply to: Flies-Eyes

Flies-Eyes
Advisor
Advisor
Accepted solution

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.

Message 6 of 6
Flies-Eyes
in reply to: Flies-Eyes

Flies-Eyes
Advisor
Advisor

The result....

 

FliesEyes_0-1712961504859.png

 

 

0 Likes

The result....

 

FliesEyes_0-1712961504859.png

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report