Mithas
Guest
Hello everyone,
someone by chance would know how to cast from imodeldoc2 to iassemblydoc in c# for a solidworks application.
below the part that gives me trouble.
private list<node> children(imodeldoc2 comp)
(')
list<node> date2 = new list<node>(c)
iassemblydoc assy = (iassemblydoc)comp; // here should be the cast, but I always have an error
object object</node></node></node>[] comps = assy.getcomponents(true);
foreach (icomponent2 icomp in comps)
(')
if (!icomp.issuppressed())
data2.add(compinfo(imodeldoc2)icomp.getmodeldoc2());
?
return (list<node>)data2.groupby(x => x.code);
?
I wanted to be able to pass to the method always modeldoc2 and then convert it into iassemblydoc inside, but nothing comes to mind.. .
Thank you.
♪</node>
someone by chance would know how to cast from imodeldoc2 to iassemblydoc in c# for a solidworks application.
below the part that gives me trouble.
private list<node> children(imodeldoc2 comp)
(')
list<node> date2 = new list<node>(c)
iassemblydoc assy = (iassemblydoc)comp; // here should be the cast, but I always have an error
object object</node></node></node>[] comps = assy.getcomponents(true);
foreach (icomponent2 icomp in comps)
(')
if (!icomp.issuppressed())
data2.add(compinfo(imodeldoc2)icomp.getmodeldoc2());
?
return (list<node>)data2.groupby(x => x.code);
?
I wanted to be able to pass to the method always modeldoc2 and then convert it into iassemblydoc inside, but nothing comes to mind.. .
Thank you.
♪</node>