See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: I need help adjust the code

  1. #1
    Member
    Join Date
    2018-04
    Posts
    9
    Login to Give a bone
    0

    Default I need help adjust the code

    I have attached file.
    hope somebody helps..
    give advice
    comment
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,568
    Login to Give a bone
    0

    Default Re: I need help adjust the code

    You need to give us more information. What is wrong with the code? What do you want to do? Attach a sample dwg file to test the dvb on.
    C:> ED WORKING....

  3. #3
    Member
    Join Date
    2018-04
    Posts
    9
    Login to Give a bone
    0

    Default Re: I need help adjust the code

    The code is too lengthy I don't know some how please make it shorter.
    Thanks.
    Attached Files Attached Files

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,568
    Login to Give a bone
    1

    Default Re: I need help adjust the code

    You're right, it is too long. You need to refactor it. You have 6 bays. Create a subroutine that creates 1 bay and make it with an argument that takes an double for the length. Then you can just call the subroutine for each length, e.g.:

    Code:
    CreateBay(4150)
    Also, consider using With statement, e.g.

    Code:
    With adim
       .TextHeight = 1
       .Color = acByLayer
       .Layer = "0"
       .Update
    End With
    An alternative is to create a dynamic block for 1 bay that can be stretched to the desired length.
    C:> ED WORKING....

  5. #5
    Woo! Hoo! my 1st post
    Join Date
    2019-07
    Location
    Viet Nam
    Posts
    1
    Login to Give a bone
    0

    Default Re: I need help adjust the code

    I have the same problem.

Similar Threads

  1. Replies: 7
    Last Post: 2012-03-30, 06:34 AM
  2. Need some help with code.....
    By laison.albarado in forum AutoLISP
    Replies: 3
    Last Post: 2010-11-11, 10:33 AM
  3. Need help with code
    By paulof in forum AutoLISP
    Replies: 6
    Last Post: 2008-06-25, 06:23 PM
  4. VBScript code in Property Definitions need HELP
    By jim.155208 in forum Style Management
    Replies: 2
    Last Post: 2007-12-21, 08:04 PM
  5. Need some help manipulating a variable in VBA code
    By jbortoli in forum VBA/COM Interop
    Replies: 6
    Last Post: 2007-05-29, 11:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •