صادرات هندسه به فایل

View Categories

صادرات هندسه به فایل

1 min read

صادرات هندسه به فایل
برای صادر کردن هندسه نهایی به یک فایل، وارد کنید
model.component( <ctag> ).geom( <tag> ).exportFinal( <نام فایل> );
که در آن <filename> یک رشته است.
برای صادر کردن اشیاء هندسی انتخاب شده به یک فایل، ابتدا اشیایی را که باید با استفاده از آن صادر شوند انتخاب کنید
model.component( <ctag> ).geom( <tag> ).export().selection().set( <objnames> );
فرمت فایل را با استفاده از
model.component( <ctag> ).geom( <tag> ).export().set Type ( <format> );
که در آن <format> را می توان روی هر یک از مقادیر نوع در جدول 3-26 تنظیم کرد .
بررسی کنید که کدام فرمت فایل با استفاده از آن تنظیم شده است
رشته formatType = model.component( <ctag> ).geom( <tag> ).export().get Type ();
فایل را با وارد کردن صادر کنید
model.component( <ctag> ).geom( <tag> ).export( <نام فایل> );
فایل می تواند به یکی از فرمت های زیر باشد:
TABLE 3-26: VALID FILE FORMATS
FILE FORMAT
NOTE
FILE EXTENSIONS
TYPE VALUE
COMSOL Multiphysics Binary
.mphbin
nativebin
COMSOL Multiphysics Text
.mphtxt
nativeascii
Parasolid Binary (3D)
1, 2
.x_b.xmt_bin
parasolidbin
Parasolid Text (3D)
1, 2
.x_t.xmt_txt
parasolidascii
ACIS Binary (3D)
1, 3
.sab
acisbin
ACIS Text (3D)
1, 3
.sat
acisascii
IGES File (3D)
1
.igs.iges
iges
STEP File (3D)
1
.step.stp
step
STL Binary (3D)
.stl
stlbin
STL Text (3D)
.stl
stlascii
DXF (2D)
.dxf
dxf
1 This format requires a license for the CAD Import Module, Design Module, or a LiveLink product for a CAD package.
2 The exported Parasolid file format version is 34.
3 Use model.geom(<tag>).export().setAcisVersion(<version>) to specify the ACIS file format version (“4.0”, “7.0”; or the default “2016 1.0”).