Scheme Extensions |
|
|
Technical Article |
object | scheme-object |
; assembly? ; Create a new model. (define asm_model (model:create)) ;; asm_model ; Is asm_model an assembly? (assembly? asm_model) ;; #f ; Put an assembly in the model. (model:create-assembly) ;; () (part:entities) ;; (#[entity 1 1]) ; Is the entity an assembly? (assembly? (entity 1 1)) ;; #t |
[Top]
type | integer |
file | string |
models | (model...) |
text | boolean |
; asm-example:export |
[Top]
type | integer |
file | string |
text | boolean |
; asm-example:import |
[Top]
object | scheme-object |
; component? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get the component associated with the part_model reference. (define part_model_comp (component part_model_ref)) ;; part_model_comp ; Is it a component? (component? part_model_comp) ;; #t ; Is the part_model reference a component? (component? part_model_ref) ;; #f |
[Top]
path_mref_list | (entity...) |
path_mref | entity |
comp_list | (component...) |
comp_model | model |
opts | acis-options |
; component ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp |
[Top]
comp | component |
prop | entity |
prop_owning_model | model |
opts | acis-options |
; component:add-property |
[Top]
comp | component |
create_box | boolean |
box_mode | string | integer |
opts | acis-options |
0 | "tight" |
1 | "loose" |
2 | "quick" |
3 | "default" |
4 | "default_pre_R12" |
5 | "exact" |
; component:box ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the box of the component. (component:box comp) ;; (#[ position 1 0 10 ] . #[ position 11 10 20 ]) |
[Top]
comp | component |
opts | acis-options |
; component:color ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Confirm that no color has been applied to the component. (component:color comp) ;; () |
[Top]
comp | component |
opts | acis-options |
; component:component-entities ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the component-entities associated with the block component. (component:component-entities comp) ;; (#[component-entity 1 3]) |
[Top]
comp | component |
opts | acis-options |
; component:entities ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the entities associate with the block component. (component:entities comp) ;; (#[entity 1 1]) |
[Top]
origin | component |
target | component |
include_units_rescaling | boolean |
opts | acis-options |
; component:get-rel-transform ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Get and print the transform of comp1 relative to comp2. (transform:print (component:get-rel-transform comp2 comp1)) ;; no rotation no reflection no shear not identity ;; translation part: ;; 1.000000 0.000000 0.000000 ;; affine part: ;; 1.000000 0.000000 0.000000 ;; 0.000000 1.000000 0.000000 ;; 0.000000 0.000000 1.000000 ;; scaling part: ;; 1.000000 ;; Steps to reconstruct transf... ;; 1.) Translate (1.000000, 0.000000, 0.000000) ;; #[transform 129417072] |
[Top]
comp | component |
include_units_rescaling | boolean |
opts | acis-options |
; component:get-transform ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get and print the transform associated with comp. (transform:print (component:get-transform comp)) ;; no rotation no reflection no shear not identity ;; translation part: ;; 1.000000 0.000000 10.000000 ;; affine part: ;; 1.000000 0.000000 0.000000 ;; 0.000000 1.000000 0.000000 ;; 0.000000 0.000000 1.000000 ;; scaling part: ;; 1.000000 ;; Steps to reconstruct transf... ;; 1.) Translate (1.000000, 0.000000, 10.000000) ;; #[transform 129413624] |
[Top]
comp | component |
opts | acis-options |
; component:has-color-modifications ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Color the component red. (component:set-color comp1 (color:rgb 1 0 0)) ;; () ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Ask for its color modifications. (component:has-color-modifications comp2) ;; (#t #f #f) |
[Top]
comp | component |
opts | acis-options |
; component:has-hiding-modifications ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Hide the component. (component:hide comp1) ;; () ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Ask for its hiding modifications. (component:has-hiding-modifications comp2) ;; (#t #f #f) |
[Top]
comp | component |
opts | acis-options |
; component:has-material-modifications ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Set the component's transparency to 50%. (component:set-transparency comp1 0.5) ;; () ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Ask for its material modifications. (component:has-material-modifications comp2) ;; (#t #f #f) |
[Top]
comp | component |
opts | acis-options |
; component:has-physical-modifications ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Suppress the component. (component:suppress comp1) ;; () ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Ask for its physical modifications. (component:has-physical-modifications comp2) ;; (#t #f #f) |
[Top]
comp | component |
opts | acis-options |
; component:hidden? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Hide the component. (component:hide comp) ;; () (component:hidden? comp) ;; #t ; Unhide the component. (component:unhide comp) ;; () (component:hidden? comp) ;; #f |
[Top]
comp | component |
prop_owning_model | model |
opts | acis-options |
; component:hide ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Hide the component. (component:hide comp) ;; () |
[Top]
comp | component |
mp_opts | massprops-options |
opts | acis-options |
; component:massprops ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the massprops of the component. (component:massprops comp) ;; #[massprops: ;; level = "volume-centroid-and-inertia", ;; volume = 1000, ;; rel accy vol achieved = 0, ;; centroid = (6 5 15), ;; inertia = (266667 30000 90000) ;; (30000 277667 75000) ;; (90000 75000 77666.7)] |
[Top]
comp | component |
opts | acis-options |
; component:model ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the raw model associated with comp. (component:model comp) ;; #[model 1] |
[Top]
comp | component |
opts | acis-options |
; component:model-ref-path ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the model-ref path associated with comp. (component:model-ref-path comp) ;; (#[entity 2 3] #[entity 2 2]) |
[Top]
comp | component |
opts | acis-options |
; component:modified? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component associated with asm_model. (define comp1 (component asm_model)) ;; comp1 ; Get the component of asm_model associated with the subassembly. (define comp2 (component subasm_model_ref)) ;; comp2 ; Get the component of asm_model associated with the block. (define comp3 (component (list subasm_model_ref part_model_ref))) ;; comp3 ; Apply a color to comp2. (component:set-color comp2 (color:rgb 0 0 1)) ;; () ; Ask whether comp1 is modified. (component:modified? comp1) ;; #f ; Ask whether comp2 is modified. (component:modified? comp2) ;; #t ; Ask whether comp3 is modified. (component:modified? comp3) ;; #t |
[Top]
comp | component |
opts | acis-options |
; component:name ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Set the component's name. (component:set-name comp "block component") ;; () ; Verify the component's name. (component:name comp) ;; "block component" |
[Top]
comp | component |
opts | acis-options |
; component:parent ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the parent component of comp. (component:parent comp) ;; #[component 2 3] |
[Top]
comp | component |
prop_owning_model | model |
opts | acis-options |
; component:remove-color ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Color the component red. (component:set-color comp (color:rgb 1 0 0)) ;; () ; Get the component's color. (component:color comp) ;; #[ color 1 0 0 ] ; Remove the component's color. (component:remove-color comp) ;; () ; Get the component's color. (component:color comp) ;; () |
[Top]
comp | component |
opts | acis-options |
; component:root-model ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the root model associated with comp. (component:root-model comp) ;; #[model 3] |
[Top]
comp | component |
color | color |
prop_owning_model | model |
opts | acis-options |
; component:set-color ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Color the component red. (component:set-color comp (color:rgb 1 0 0)) ;; () |
comp | component |
name | string |
opts | acis-options |
; component:set-name ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Set the component's name. (component:set-name comp "block component") ;; () |
[Top]
comp | component |
transp | real |
prop_owning_model | model |
opts | acis-options |
; component:set-transparency ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Set the component's transparency to 50%. (component:set-transparency comp 0.5) ;; () |
[Top]
comp | component |
which | string |
opts | acis-options |
"all" | all components of the specified model, including the component corresponding to the model, are returned. |
"sub" | all proper sub-components of the specified model are returned |
"immediate" | only the immediate sub-components of the model's component are returned |
"leaf" | all sub-components that correspond to part models are returned |
; component:sub-components ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component corresponding to asm_model. (define comp (component asm_model)) ;; comp ; Get its immediate sub-components. (component:sub-components comp "immediate") ;; (#[component 2 3]) ; Get its leaf sub-components. (component:sub-components comp "leaf") ;; (#[component 3 3]) |
[Top]
comp | component |
prop_owning_model | model |
opts | acis-options |
; component:suppress ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Suppress the component. (component:suppress comp) ;; () |
[Top]
comp | component |
opts | acis-options |
; component:suppressed? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Confirm that the component is not suppressed. (component:suppressed? comp) ;; #f |
[Top]
comp | component |
opts | acis-options |
; component:transparency ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Confirm that the component is opaque. (component:transparency comp) ;; 1 |
[Top]
comp | component |
prop_owning_model | model |
opts | acis-options |
; component:unhide ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Hide the component. (component:hide comp) ;; () (component:hidden? comp) ;; #t ; Unhide the component. (component:unhide comp) ;; () (component:hidden? comp) ;; #f |
[Top]
comp | component |
opts | acis-options |
; component:units-ratio |
[Top]
comp | component |
prop_owning_model | model |
opts | acis-options |
; component:unsuppress ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Suppress the component. (component:suppress comp) ;; () (component:suppressed? comp) ;; #t ; Unsuppress the component. (component:unsuppress comp) ;; () (component:suppressed? comp) ;; #f |
[Top]
object | scheme-object |
(view:gl) #[view 1902562] ; component-entity? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Is the model reference a component-entity? (component-entity? part_model_ref) ;; #f ; Pick one of the faces of the part_model component. (define part_model_comp_ent (pick-asm:face (read-event) 1)) ;; part_model_comp_ent ; Have we picked a component-entity? (component-entity? part_model_comp_ent) ;; #t |
[Top]
comp | component |
ent | entity |
opts | acis-options |
; component-entity ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp1 (component (list subasm_model_ref part_model_ref))) ;; comp1 ; Get the component-entity associate with the block component. (define comp-ent (car (component:component-entities comp1))) ;; comp-ent ; Decompose comp-ent into its component and entity. (define ent (component-entity:entity comp-ent)) ;; ent (define comp2 (component-entity:component comp-ent)) ; Recompose the component entity (component-entity comp2 ent) ;; #[component-entity 1 3] ; Show that it's the same as comp-ent comp-ent ;; #[component-entity 1 3] |
[Top]
comp_ent | component-entity |
opts | acis-options |
; component-entity:component ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the component-entity associate with the block component. (define comp-ent (car (component:component-entities comp))) ;; comp-ent ; Get the component part of the component-entity. (component-entity:component comp-ent) ;; #[component 1 3] ; See that it's the same as comp. comp ;; #[component 1 3] |
[Top]
comp_ent | component-entity |
opts | acis-options |
; component-entity:entity ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the component of asm_model associated with the block. (define comp (component (list subasm_model_ref part_model_ref))) ;; comp ; Get the component-entity associate with the block component. (define comp-ent (car (component:component-entities comp))) ;; comp-ent ; Get the entity part of the component-entity. (component-entity:entity comp-ent) ;; #[entity 1 1] ; See that it's the same as the block. (model:entities part_model) ;; (#[entity 1 1]) |
[Top]
comp_ent_list | component-entity | (component-entity...) |
on | boolean |
; component-entity:set-highlight ; Create a model in the active part. (view:gl) #[view 32376490] (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Pick one of the faces of the part_model component. (define part_model_comp_ent (pick-asm:face (read-event) 1)) ;; part_model_comp_ent ; Set highlighting "on" for the face. (component-entity:set-highlight part_model_comp_ent #t) ;; #[component-entity 1 2] ; Set highlighting "off" for the face. (component-entity:set-highlight part_model_comp_ent #f) ;; #[component-entity 1 2] |
[Top]
ent_opt | boolean |
comp_opt | boolean |
comp_ent | boolean |
opts | acis-options |
; env:asm-cleanup |
[Top]
ent_opt | boolean |
comp_opt | boolean |
comp_ent_opt | boolean |
opts | acis-options |
; env:asm-cleanup-handles |
[Top]
opts | acis-options |
; env:asm-cleanup-models |
[Top]
; env:asm-clear-all |
[Top]
object | scheme-object |
; model? ; assembly? ; Create a new model. (define asm_model (model:create)) ;; asm_model ; Is asm_model a model? (model? asm_model) ;; #t ; Put an assembly in the model. (model:create-assembly) ;; () (part:entities) ;; (#[entity 1 1]) ; Is the entity a model? (model? (entity 1 1)) ;; #f |
[Top]
ref_model | model |
tform | transform |
owning_model | model |
opts | acis-options |
; model:add-model-ref ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get all model references. (model:model-refs) ;; (#[entity 2 2]) |
[Top]
model | model |
ent_opt | boolean |
comp_opt | boolean |
comp_ent_opt | boolean |
opts | acis-options |
; model:cleanup |
[Top]
model | model |
ent_opt | boolean |
comp_opt | boolean |
comp_ent_opt | boolean |
opts | acis-options |
; model:cleanup-handles |
[Top]
model | model |
opts | acis-options |
; model:cleanup-model |
[Top]
model | model |
which | string |
opts | acis-options |
"all" | all components of the specified model, including the component corresponding to the model, are returned |
"sub" | all proper sub-components of the specified model are returned |
"immediate" | only the immediate sub-components of the model's component are returned |
"leaf" | all sub-components that correspond to part models are returned. If the model is unspecified, the model associated with the active part is used. |
; model:components ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get all components - the component corresponding to part_model_ref ; and the one corresponding to asm_model itself. (model:components asm_model "all") ;; (#[component 2 2] #[component 1 2]) ; Get only the subcomponents of asm_model. (model:components asm_model "sub") ;; (#[component 1 2]) |
[Top]
part | part |
make_assembly | boolean |
opts | acis-options |
; model:create ; Create a model in the active part, together with an assembly (define asm_part (env:active-part)) ;; asm_part (define asm_model (model:create asm_part #t)) ;; asm_model ; Does the model have an assembly? (model:has-assembly asm_model) ;; #t ; Is there an assembly among the active part's entities? (define ents (part:entities)) ;; ents (assembly? (car ents)) ;; #t |
[Top]
model | model |
opts | acis-options |
; model:create-assembly ; Create a new model in the active part. (define asm_model (model:create)) ;; asm_model ; Put an assembly in the model. (model:create-assembly) ;; () |
[Top]
model | model |
opts | acis-options |
; model:del-assembly ; Create a new model in the active part. (define asm_model (model:create)) ;; asm_model ; Put an assembly in the model. (model:create-assembly) ;; () ; There is now an assembly entity associated with the active part. (part:entities) ;; (#[entity 1 1]) ; Delete the assembly. (model:del-assembly) ;; () ; There is now no entity associated with the active part. (part:entities) ;; () |
[Top]
model | model |
opts | acis-options |
; model:entities ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; List the entities in the model (model:entities) ;; (#[entity 1 1]) |
[Top]
model | model |
opts | acis-options |
; model:has-assembly ; Create a new model in the active part. (define asm_model (model:create)) ;; asm_model ; The new model has no assembly. (model:has-assembly) ;; #f ; Put an assembly in the model. (model:create-assembly) ;; () ; The model now has an assembly. (model:has-assembly) ;; #t |
[Top]
file | string |
text | boolean |
history | boolean |
; model:load ; Load a model. (model:load "myfile.asat") ;; (#[model 3]) |
[Top]
model | model |
opts | acis-options |
; model:model-refs ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get all model references. (model:model-refs) ;; (#[entity 2 2]) |
[Top]
model | model |
; model:name ; Load a model. (define first_model (car (model:load "myfile.asat"))) ;; first_model ; Ask for the name of first_model. (model:name first_model) ;; "assembly" |
[Top]
model | model |
; model:part ; Get the active part. (env:active-part) ;; #[part 1] ; Create a new model. (define asm_model (model:create)) ;; asm_model ; Get the part associated with the model. (model:part asm_model) ;; #[part 1] |
[Top]
mref | entity |
opts | acis-options |
; model:remove-model-ref ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get all model references. (model:model-refs) ;; (#[entity 2 2]) ; Remove the model reference. (model:remove-model-ref part_model_ref) ;; () (model:model-refs) ;; () |
[Top]
prop | entity |
opts | acis-options |
; model:remove-property |
[Top]
model | model | (model...) |
text | boolean |
history | boolean |
opts | acis-options |
; model:save ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Save the assembly model. (model:save "myfile.asat" asm_model) ;; #t |
[Top]
model | model |
text | boolean |
history | boolean |
use_SAT_for_part_models | boolean |
; model:save-atomic ; Create a model in the active part. (define part_model (model:create)) ;; part_model ; Name the model. (model:set-name "part") ;; () (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Name the model. (model:set-name "assembly") ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Save the assembly model in atomic mode. (model:save-atomic "myfile.asat" asm_model) ;; #t |
[Top]
name | string |
model | model |
; model:set-name ; Create a model in the active part. (define part_model (model:create)) ;; part_model ; Name the model. (model:set-name "part") ;; () |
[Top]
root-model | model |
which | string |
opts | acis-options |
"all" | all sub-models of the root model, including the root model, are returned. |
"sub" | all proper sub-models of the root model are returned. (default) |
"immediate" | only the proper sub-models referenced by the root's assembly model are returned. |
"leaf" | all sub-models that are not assembly models are returned. If the root model is not an assembly, the root model is returned. |
; model:sub-models ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get all sub-models (model:sub-models) ;; (#[model 1]) |
[Top]
object | scheme-object |
; model-ref? ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Is the result a model-ref? (model-ref? part_model_ref) ;; #t ;Is the model a model-ref? (model-ref? asm_model) ;; #f |
[Top]
mref | entity |
opts | acis-options |
; model-ref:get-transform ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get the model reference's transform and print it. (transform:print (model-ref:get-transform part_model_ref)) ;; no rotation no reflection no shear not identity ;; translation part: ;; 1.000000 0.000000 0.000000 ;; affine part: ;; 1.000000 0.000000 0.000000 ;; 0.000000 1.000000 0.000000 ;; 0.000000 0.000000 1.000000 ;; scaling part: ;; 1.000000 ;; Steps to reconstruct transf... ;; 1.) Translate (1.000000, 0.000000, 0.000000) ;; #[transform 129412928] |
[Top]
mref | entity |
opts | acis-options |
; model-ref:model ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get the model reference's model. (model-ref:model part_model_ref) ;; #[model 1] |
[Top]
mref | entity |
opts | acis-options |
; model-ref:owning-model ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define subasm_part (part:new)) ;; subasm_part (env:set-active-part subasm_part) ;; () ; Create a model containing an assembly. (define subasm_model (model:create)) ;; subasm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define subasm_transf (transform:translation (gvector 0 0 10))) ;; subasm_transf ; Create a model reference for subasm_model within the assembly. (define subasm_model_ref (model:add-model-ref subasm_model subasm_transf)) ;; subasm_model_ref ; Get the model that owns subasm_model_ref. (model-ref:owning-model subasm_model_ref) ;; #[model 3] ; Get the model that owns part_model_ref. (model-ref:owning-model part_model_ref) ;; #[model 2] |
[Top]
mref | entity |
; model-ref:part ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Get the part that contains part_model_ref. (model-ref:part part_model_ref) ;; #[part 2] |
[Top]
mref | entity |
tform | transform |
opts | acis-options |
; model-ref:set-transform ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Change the model references's transform. (define new_part_transf (transform:rotation (position 0 0 0) (gvector 0 1 0) 45)) ; new_part_transf (model-ref:set-transform part_model_ref new_part_transf) ;; () ; Get the model reference's current transform and print it. (transform:print (model-ref:get-transform part_model_ref)) ;; rotation no reflection no shear not identity ;; translation part: ;; 0.000000 0.000000 0.000000 ;; affine part: ;; 0.707107 0.000000 -0.707107 ;; 0.000000 1.000000 0.000000 ;; 0.707107 0.000000 0.707107 ;; scaling part: ;; 1.000000 ;; Steps to reconstruct transf... ;; 1.) Rotate about X axis 0.000000, Y axis 45.000000, Z axis 0.000000 degrees ;; or rotate 45.000000 degrees about vector (0.000000, 1.000000, 0.000000) ;; #[transform 129416616] |
[Top]
mref | entity |
tform | transform |
opts | acis-options |
; model-ref:transform ; Create a model in the active part. (define part_model (model:create)) ;; part_model (solid:block 0 0 0 10 10 10) ;; #[entity 1 1] ; Make a new part and set it active. (define asm_part (part:new)) ;; asm_part (env:set-active-part asm_part) ;; () ; Create a model containing an assembly. (define asm_model (model:create)) ;; asm_model (model:create-assembly) ;; () ; Create the transform to be used on part_model. (define part_transf (transform:translation (gvector 1 0 0))) ;; part_transf ; Create a model reference for part_model within the assembly. (define part_model_ref (model:add-model-ref part_model part_transf)) ;; part_model_ref ; Change the model references's transform. (define add_part_transf (transform:translation (gvector 0 1 0))) ; add_part_transf (model-ref:transform part_model_ref add_part_transf) ;; () ; Get the model reference's current transform and print it. (transform:print (model-ref:get-transform part_model_ref)) ;; no rotation no reflection no shear not identity ;; translation part: ;; 1.000000 1.000000 0.000000 ;; affine part: ;; 1.000000 0.000000 0.000000 ;; 0.000000 1.000000 0.000000 ;; 0.000000 0.000000 1.000000 ;; scaling part: ;; 1.000000 ;; Steps to reconstruct transf... ;; 1.) Translate (1.000000, 1.000000, 0.000000) ;; #[transform 129416464] |
[Top]
part | part |
; part:model ; Get the active part. (define asm_part (env:active-part)) ;; asm_part ; Create a new model. (model:create) ;; #[model 1] ; Get the model associated with the active part. (part:model asm_part) ;; #[model 1] |
[Top]
© 1989-2007 Spatial Corp., a Dassault Systèmes company. All rights reserved.