Can't get 'AddTinVolumeSurface method to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am at my wits end.
Trying to create a Tin Volume Surface using Vlisp.
The Surfaces collection has a method called AddTinVolumeSurface (1). The (1) meaning the method takes one arguement, right?
Here's the code:
(setq surfs (vlax-get-property c3ddoc 'Surfaces)) ;sets the Surfaces collection as surfs
;(setq surfname (vlax-make-safearray vlax-vbstring '(0 . 0))) This was an attempt to use a safearray of a single dimension
;(vlax-safearray-fill surfname (list "tempsurface")) and fill it in with a list.
;(setq surfname (vlax-make-safearray vlax-vbstring)) Tried it without the dimensions of the array
;(vlax-safearray-fill surfname "TEST")) Tried filling the array with a string instead of a string in a list.
;(setq surfname "TEST") Tried with the surfname set to a string, not a safearray.
(setq surfname (vlax-make-variant "TEST" vlax-vbstring)) and the most recent try, using a variant.
(setq surf3 (vlax-invoke-method surfs 'AddTinVolumeSurface surfname)) But when I use this code to create the surface, I get various errors, depending on the option I used creating surfname.
What is expected from AddTinVolumeSurface (1). I am putting the surface name in as an arguement, but I can't get it to work. I have tried integers like 0 and 1, I have tried T and F. I really wish there was documentation somewhere that would tell me what is expected here .
Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller
New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut