Author Topic: Help me speed up existing routine to move objects from Layer 0  (Read 6075 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: Challenge - Speed up existing routine to move objects from Layer 0
« Reply #15 on: October 29, 2010, 12:58:34 PM »
You're right - it appears it does - well, that makes my code a lot simpler  :evil:

...EDIT: judgin by MP's post, not sure now...

why did you remove the orig code? that would have been a good learning example.

I wouldn't want to leave potentially harmful code to beginners to stumble upon.

JohnK

  • Administrator
  • Seagull
  • Posts: 10657
Re: Challenge - Speed up existing routine to move objects from Layer 0
« Reply #16 on: October 29, 2010, 01:01:20 PM »
why did you remove the orig code? that would have been a good learning example.
I wouldn't want to leave potentially harmful code to beginners to stumble upon.
whats wrong with commenting out a block of code?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: Challenge - Speed up existing routine to move objects from Layer 0
« Reply #17 on: October 29, 2010, 01:08:09 PM »
why did you remove the orig code? that would have been a good learning example.
I wouldn't want to leave potentially harmful code to beginners to stumble upon.
whats wrong with commenting out a block of code?

Nothing  :-)

JohnK

  • Administrator
  • Seagull
  • Posts: 10657
Re: Help me speed up existing routine to move objects from Layer 0
« Reply #18 on: October 29, 2010, 01:13:00 PM »
*sigh* You understand that our goal here at theSwamp is to teach right? ...you know what, never mind.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Help me speed up existing routine to move objects from Layer 0
« Reply #19 on: October 29, 2010, 01:30:27 PM »
*sigh* You understand that our goal here at theSwamp is to teach right? ...you know what, never mind.

What do you mean by `Challenge'? Do mean to get several people to do this for you so that you can pick the best one or do you mean that you are challenged by this problem. If the later, then there is no need to state that because its obvious by your asking the question.

Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Help me speed up existing routine to move objects from Layer 0
« Reply #20 on: October 29, 2010, 01:37:49 PM »
Wow, 2 pages already! Honestly, I learn a lot here, unfortunately I don't always get everything the first time around.

Lee,
As I said, I think it was only harmful in that it might have had characters that are not acceptable in layer names, which would have caused AutoCAD to crash, the VL-Translate *SHOULD* fix that.

JohnK

  • Administrator
  • Seagull
  • Posts: 10657
Re: Help me speed up existing routine to move objects from Layer 0
« Reply #21 on: October 29, 2010, 02:56:13 PM »
meh
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org