Results 1 to 4 of 4

Thread: Routine to generate a length X width from existing dimensions.

  1. #1
    Member
    Join Date
    2001-11
    Location
    Buffalo, NY
    Posts
    36
    Login to Give a bone
    0

    Default Routine to generate a length X width from existing dimensions.

    Hello everyone. Please refer to attached for more information. I hope this is the correct sub for this.

    As the title suggests, I would like to pick two dimensions, add a user defined size to both individually (usually, but not always the same dimension for length and width) and have it insert into a drawing using the format of LENGTH"xWIDTH". The kicker is that the returned values must use stacked fractions to match the rest of the drawing. An easier method is welcomed to be explored. I was thinking maybe picking the opening instead of the dims maybe?

    Purpose:
    I draw storefronts and curtain walls. Part of the job is to generate fabrication drawings for the shop. You'll see that in the attached drawing, there are dimensions that display the DL (or day light opening) of the window frame. This is the dimension from the edge of mullion to edge of mullion. We add a variable dimension to these values to generate the glass size for the opening. Normally we generate these sizes manually, and as expected, we do get some errors from this. We'd like to be able to automate this.

    I've tried this using fields, but to no avail. I'm not well versed in LISP to create a routine, nor do I know if it is possible.

    I appreciate any input you all may have on this. Thanks in advance.

    Using AutoCAD 2025
    Attached Files Attached Files

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

    Default Re: Routine to generate a length X width from existing dimensions.

    If you always have a rectangle like that, I think I would use a dynamic block. All you would need is to insert it and stretch it to the correct dimensions. You would also need to provide a standard for entering the added widths, which I assume is the dado that the glass fits in. It could simply be a (user parameter) property of the block. I have to leave now, but when I get back I could show you a sample using your dwg.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Member
    Join Date
    2001-11
    Location
    Buffalo, NY
    Posts
    36
    Login to Give a bone
    0

    Default Re: Routine to generate a length X width from existing dimensions.

    Thanks Ed, I appreciate it. Whatever you are willing to show me is welcome.

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

    Default Re: Routine to generate a length X width from existing dimensions.

    See the attached dwg. After you stretch the wdth and height, you need to do a regen to update the attributes.
    Attached Files Attached Files
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. 2016: AIR TERMINALS: Whats the difference between "width" and "duct width"?
    By danezeq390391 in forum Revit MEP - General
    Replies: 4
    Last Post: 2016-08-02, 09:42 AM
  2. Ability to generate a 2D/3D section keeping the existing layer structure
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2012-06-14, 12:42 PM
  3. Generate Layer VBA routine
    By tatriest in forum VBA/COM Interop
    Replies: 4
    Last Post: 2006-08-15, 02:45 PM
  4. a room tag that will show "room length x room width"
    By bayejid_bd in forum Revit Architecture - General
    Replies: 6
    Last Post: 2006-02-06, 08:48 PM
  5. Show Length and Width of Room
    By roy.70844 in forum Revit Architecture - General
    Replies: 0
    Last Post: 2005-04-11, 03:48 PM

Tags for this Thread

Posting Permissions

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