Author Topic: Do polylines need to be disposed?  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

waterharbin

  • Guest
Do polylines need to be disposed?
« on: June 09, 2012, 01:39:38 AM »
Hi.
I will need to draw some polyines as auxiliary lines. This means I don't need those polylines be visible on the screen. They will be disposed by hand later? So, is there any type polyine like LineSegment which do not need to handle their aftermath by hand?

zoltan

  • Guest
Re: Do polylines need to be disposed?
« Reply #1 on: June 09, 2012, 03:08:19 PM »
I was under the notion that all DbObjects should be disposed when you are done with them.

You could use the Geometry.CompositeCurve3d or Geometry.CompositeCurve2d classes.  They are like Polylines in that they are made of multiple component curves that are connected end-to-end.
« Last Edit: June 09, 2012, 03:25:24 PM by zoltan »

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: Do polylines need to be disposed?
« Reply #2 on: June 11, 2012, 07:38:43 AM »
Any DBObject thats not added to the database needs to be Disposed. DBObjects added to the database through a transaction are cleaned up by the transaction.
Revit 2019, AMEP 2019 64bit Win 10