Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 787

Ask function for UF constant UF_UI_SEL_FEATURE_SOLID_BODY

$
0
0

Hi all,

I am new to NXJournaling. I have been editing few Journals and using them to measure volume.

I have a doubt in UF constant method which has been used in a code block.

In this block of code , i want to add additional filter to select only solid bodies(Non -sheet bodies). I have found out the UF constant for the same.

"UF_UI_SEL_FEATURE_SOLID_BODY" this UF constant will select only solid bodies.

Dim aBodyTag As Tag = Tag.NullDo
            theUFSession.Obj.CycleObjsInPart(thePart.Tag, _
                UFConstants.UF_solid_type, aBodyTag) 
            If aBodyTag = Tag.NullThenExitDoEndIf 
             Dim theType AsInteger, theSubtype AsInteger
            theUFSession.Obj.AskTypeAndSubtype(aBodyTag, theType, theSubtype) 
            If theSubtype = UFConstants.UF_solid_body_subtypeThen                theBodies.Add(theSession.GetObjectManager.GetTaggedObject(aBodyTag))EndIf 
        LoopWhileTrue

So the new code block will have the following codes.

Dim thesolidsubtype AsInteger
    theUFSession.***.*************(thesolidsubtype)If thesolidsubtype = UFConstants.UF_UI_SEL_FEATURE_SOLID_BODYThen

I am not sure about the ask function (indicated in ****) for the solid body sub type.

Any help will be appreciated.


Viewing all articles
Browse latest Browse all 787


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>