Home
Reply
Contributor
thomasyong12
Posts: 13

Array of edges

How do I create an array of edge?

I want to use the below function to make a wire body but I do not know how to write code about initializing array of edge (edges[]).

Somebody please help, it is an easy question...

 

function:

outcome api_make_ewires(..., EDGES* edges[],... )

Spatial Moderator
ybiyani
Posts: 223

Re: Array of edges

Hello Thomas,

 

The best way to get sample codes is to look at the scheme implementation. We provide the source code for the acis3dt.exe sample in the scm folder. Here are the steps to get to the scheme implementation

1) Find the scheme extension by searching the docs http://doc.spatial.com/index.php/Special:Search?search=api_make_ewires&fulltext=Search 

2) One of the results will include a link to the scheme extension- in this case http://doc.spatial.com/index.php/SchemeExt:Map_Scheme_Extensions_to_API/Index/W 

3) If you scan this result you see that the scheme extension is wire-body:group http://doc.spatial.com/index.php/SchemeExt:Wire-body:group 

4) Open the above page and you will a FileName

 

Filename

scm/scmext/cstr/wire_scm.cpp

5) Append this file name with the location of your ACIS installation (in my case it is c:\acisr20...so for me it is C:\acisR20\scm\scmext\cstr\wire_scm.cpp

6) Open this file and find api_make_ewires and you will see how to use the same.

I hope this helps.

Regards,

Yogesh

Contributor
thomasyong12
Posts: 13

Re: Array of edges

Dear Yogesh,

 

Thank you very much.... It is very useful...

by the way, where can I get more details about get_Scm_Position, get_Scm_Real and etc in the scmext? What I'm looking for is how do I correctly write out the code.

Contributor
GavinMartin
Posts: 6

Re: Array of edges

Dear!

Hope you have solved your query. In my opinion you can get more details on hxxp://doc.spatial.com/qref/ACIS/html/group__SCMAPI.html

Use "t" instead of' "x".