How to add objects to a existing file 3dm

Hi, It’s possible add objects to a existing file 3dm without create a new file using c#

you mean insert an other file?

yes, insert, because the file exists and i don’t want to create it

so it’s just “insert file”. ctrl+i and choose your file

No, but with c# using File.Write or another command

C# too high for me … :confused:

@gustavo.uzcategui, something like this seem to work:

try
{
  var f = File3dm.Read(filename);
  f.Objects.AddPoint(Point3d.Origin);
  f.Write(filename, 6);
}
catch
{
  // Do nothing...
}

– Dale

1 Like

Ohhh Thank you very much, I don’t know it was very easy