- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
trouble saving the geometry in file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-23-2011 02:48 PM
hi, all
i created a geometry and intended to save as .sat in file.
It turned out everything is ok except the erro saving file
i am lost.
Thanks in advance
Re: trouble saving the geometry in file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-23-2011 02:50 PM
//create an entity list and add the geometry to it
int check = 1;
ENTITY_LIST list;
list.add(geom_a,check);
//Save the entity list to the file
res = api_save_entity_list(save_file,TRUE,list,ao);
if(!res.ok()){printf("Error saving geometry\n");getchar();exit(1);}
Re: trouble saving the geometry in file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-23-2011 08:37 PM
Before calling api_save_entity_list, you need to:
- Create and set FileInfo,
- Open the FILE in write mode.
See this example. (No need to set the sequence_save_file option)
FYI: You can find sample usage of ACIS APIs in your scm or scmext folders.
AR

