Model copy

Technical discussions
Post Reply
Claude
Posts: 23
Joined: Thu Jan 05, 2017 3:58 am

Model copy

Post by Claude »

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

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Model copy

Post by nickz »

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

Post Reply