Hello
In order to save time, is it possible to copy a KCad model ? i.e., make a working copy of a KCad model from one child window to another one, or do I have to create a KCad model for each display window ?
Thanks
Claude
Model copy
Re: Model copy
Hi, Claude
Copying objects from one model to another can be done either by reference as described in http://www.dynoinsight.com/phpBB3/viewt ... f=2&t=3014. This way if surface of the original object changes, calling UpdateSurface() will display the change
Or by value:
Dim iSect As ISection = iModel.GetSection(0)
Dim iMod2Other As IModel2 = iModelOther
iMod2Other.AddCopy(iSect)
This way a completely new object is created and two are modified independently afterwards
Nick
Copying objects from one model to another can be done either by reference as described in http://www.dynoinsight.com/phpBB3/viewt ... f=2&t=3014. This way if surface of the original object changes, calling UpdateSurface() will display the change
Or by value:
Dim iSect As ISection = iModel.GetSection(0)
Dim iMod2Other As IModel2 = iModelOther
iMod2Other.AddCopy(iSect)
This way a completely new object is created and two are modified independently afterwards
Nick