The following code works fine to get a list of Alignments and Profile-groups. But I tried to modify it for surfaces - and now I get a "type conflict", asking for ITEM:
(setq surfaces (vlax-get C3DDOC 'surfaces))
(setq surf_max (vlax-get-property surfaces "Count"))
(setq surf_counter 0)
(while (< surf_counter surf_max)
(setq surf_temp (vlax-invoke-method surfaces "Item" surf_counter))
(setq surf_counter (+ surf_counter 1))
)
Befehl: (setq ACADPROD (strcat "AeccXUiLand.AeccApplication." C3DVER))
"AeccXUiLand.AeccApplication.12.0"
Befehl: (setq *acad* (vlax-get-acad-object))
#<VLA-OBJECT IAcadApplication 00007ff73b0a5188>
Befehl: (setq C3DOBJECT (vla-getinterfaceobject *acad* ACADPROD))
#<VLA-OBJECT IAeccApplication 000001a6b32dbea0>
Befehl: (setq C3DDOC (vla-get-activedocument C3DOBJECT))
#<VLA-OBJECT IAeccDocument 000001a6b8b03c10>
Befehl: (setq surfaces (vlax-get C3DDOC 'surfaces))
#<VLA-OBJECT IAeccSurfaces 000001a69adfaca8>
Befehl: (setq surf_max (vlax-get-property surfaces "Count"))
2
Befehl: (setq surf_counter 0)
0
Befehl: (setq surf_temp (vlax-invoke-method surfaces "Item" surf_counter))
; Fehler: ActiveX-Server hat einen Fehler zurückgegeben: Typenkonflikt
I found some snippets to collect the surfaces, but they are using "SSGET" instead of "vlax-". What's wrong with it?