Mithas
Guest
Bye to all,
I developed a small application that replaces components within a set, with sub-assiemi, based on a table.
this code:
foreach (node comp in treelistview.checkedobjects)
(')
string[] outcomp = dbfilepath(comp.code);
string namecomp = outcomp.getvalue(1).tostring();
bool status = moddocext.selectbyid2(namecomp, swselecttype_e.swselcomponents.tostring(), 0, 0, 0, true, 0, null, (int)swselectoption_e.swselectoptiondefault);
object swselobj = swselmgr.getselectedobject6(1, -1);
icomponent2 swselcomp = (icomponent2)swselmgr.getselectedobjectscomponent4(1,-1);
string[] incomp = dbfilepath(comp.codegest);
swassy.replacecomponents2(incomp.getvalue(0).tostring()+incomp.getvalue(1).tostring(),"default",true,0,true);
swmodel.clearselection();
?
until the other day, that I upgraded the solid version to 2019 sp.03 was all right, worked very well and never hit.
Now it doesn't work....
ideas, explanations, advice?
Thank you.
I developed a small application that replaces components within a set, with sub-assiemi, based on a table.
this code:
foreach (node comp in treelistview.checkedobjects)
(')
string[] outcomp = dbfilepath(comp.code);
string namecomp = outcomp.getvalue(1).tostring();
bool status = moddocext.selectbyid2(namecomp, swselecttype_e.swselcomponents.tostring(), 0, 0, 0, true, 0, null, (int)swselectoption_e.swselectoptiondefault);
object swselobj = swselmgr.getselectedobject6(1, -1);
icomponent2 swselcomp = (icomponent2)swselmgr.getselectedobjectscomponent4(1,-1);
string[] incomp = dbfilepath(comp.codegest);
swassy.replacecomponents2(incomp.getvalue(0).tostring()+incomp.getvalue(1).tostring(),"default",true,0,true);
swmodel.clearselection();
?
until the other day, that I upgraded the solid version to 2019 sp.03 was all right, worked very well and never hit.
Now it doesn't work....
ideas, explanations, advice?
Thank you.