I have a simple question,
I got a feature and I want to get its subtype, but I only found in the documentation a method that returns the type.
Is there an API that give me the subtype?
Also I would like to know how to get the operation type too (all I got is the name).
If this is what you mean by feature's subtype:
You can try:
(but I didn't tried it)
Dim featureSubtype As Integer Dim feature As CAM.FBM.Feature Dim featureSubtypeAttr As CAM.CAMAttribute 'assuming that you assigned a value to "feature": featureSubtypeAttr = feature.GetAttribute("SUBTYPE") featureSubtype = featureSubtypeAttr.GetIntegerValue
To get operation's type you can use:
Dim oper As Operation = WorkPart.CAMSetup.CAMOperationCollection.FindObject(operName) Dim typOper As String = oper.GetType.Name
Production: NX 11.0.2
Development: C#, Tcl/Tk, CSE
1) In feature sub type I mean this:
This is not a sub-type, it is a type, since there are no sub-types in the FBM feature classes.
The structure is only used to allow inheritance of attributes.
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk Testing: NX11.0 EAP, NX12.0 EAP
How to Get the Most from Your Signature in the Community