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

Export Extracted Face

$
0
0

Hi,

i'm facing a problem with the export option in NXOpen:
I created an non associative "extracted face" from a body.
Now i want to create a new part which only contains this extraced face.
I tried two options but they both don't work:

1. Option:
...
Dim nXObject2 As NXOpen.NXObject
nXObject2 = extractFaceBuilder1.Commit()
Dim Extracted_Face As NXOpen.Features.ExtractFace = Nothing
Extracted_Face = CType(nXObject2, Features.ExtractFace)
Dim BodyTag(0) As Tag
BodyTag(0) = nXObject2.Tag
Dim String_test As String = "D:\00_Database\test_part.prt"
theUFSession.Ps.ExportData(BodyTag, String_test)

2. Option:
...
Dim nXObject2 As NXOpen.NXObject
nXObject2 = extractFaceBuilder1.Commit()
Dim myOptions As UF.UFPart.ExportOptions
myOptions.params_mode = UF.UFPart.ExportParamsMode.MaintainAllParams
myOptions.new_part = True
Dim Name As String = "D:\00_Database\test_part.prt"
Dim BodyTag(0) As Tag
BodyTag(0) = nXObject2.Tag
theUFSession.Part.ExportWithOptions(Name, 1, BodyTag, myOptions)

I hope you can tell me whats my mistake with these options or an third option which works for my problem.

Thanks!

Johannes


Viewing all articles
Browse latest Browse all 787

Trending Articles



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