12-26-2011 05:31 AM - last edited on 01-05-2012 06:32 AM by rbagley
We always get requests to provide code snippets for various ACIS functionality so I thought I should point out 2 resources that are available to all the ACIS customers.
1) Under the ACIS installation in scm/scmext folder we provide source code for all the scheme extensions implemented in acis3dt.exe. So if you are interested in knowing how the scheme extension "solid:blend-edges" is implemented do the following
a) In the online help find the documentation for solid:blend-edges
b) Look for the cpp file mentioned in "Filename" field. In this case scm/scmext/blnd/blnd_scm.cpp
c) Open the explorer window and copy paste that location in the address bar and prefix it to the location where the ACIS installation on your machine is
d) This will open the cpp file.Now do a Ctrl-F and type "solid:blend-edges and it will take a line which starts with SCM_PROC. Above this line you will find the implementation. Please note using " is important for the search to work correctly as the extension you are trying to search may be used multiple times in the cpp file.
2) In scm/scmext/smoke folder the cpp files has standalone example of many ACIS functionality. These cpp files constructs the solid and performs the relevant ACIS operation. So if you are interested to a complete example on "api_blend_edges" do the following
a) Search the folder scm/scmext/smoke and search for "api_blend_edges"
b) Open any cpp file do a Ctrl-F and search for the function api
c) Above that function you will call on how to make the solid and see how to perform the operation. If you care careful enough you can create standalone samples.
Please note all of the examples demonstrated in the smoke folder can be executed in scheme using the "Tests" pull down menu.