Author Topic: Copy Block vs re-insert the block  (Read 1801 times)

0 Members and 1 Guest are viewing this topic.

Denzuki

  • Guest
Copy Block vs re-insert the block
« on: February 01, 2016, 01:21:58 PM »
I have a question. I have written a program that creates a block with multiple attributes. From a lisp perspective, would it be easier to copy the block and then change the attributes (consecutive numbering) OR reinsert the block with updated attribute information. I'm trying to get perspective before attempting to write the code. Any input would be appreciated.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Copy Block vs re-insert the block
« Reply #1 on: February 01, 2016, 01:33:39 PM »
No real difference in complexity, it would ultimately depend on whether you are looking to match the properties of the existing block.

Denzuki

  • Guest
Re: Copy Block vs re-insert the block
« Reply #2 on: February 01, 2016, 03:03:20 PM »
The properties would be the same, just the attribute values would be different.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Copy Block vs re-insert the block
« Reply #3 on: February 01, 2016, 06:59:40 PM »
The properties would be the same, just the attribute values would be different.

Then I would suggest copying the existing block and modifying the relevant attribute values.

Denzuki

  • Guest
Re: Copy Block vs re-insert the block
« Reply #4 on: February 02, 2016, 11:11:04 AM »
thanks for your input Lee!

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Copy Block vs re-insert the block
« Reply #5 on: February 02, 2016, 11:19:54 AM »
Copying would be far, far easier if you need to match a non-default orientation, especially in 3D.  Yes, I know - apply transforms.  But if you don't have to...
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}