• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

replace components

  • Thread starter Thread starter Mithas
  • Start date Start date

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.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top