Jump to content

Routine or method to generate a length X width from existing dimensions.


Recommended Posts

Posted

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 human 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

Glass Size.dwg

Posted

Using CHATGPT, I was able to -sort of- get what I wanted by selecting points and not dimensions. The only thing missing is getting the result to diagonally stack the fractions, but everything else works. Does anyone know if stacked fractions are possible?

GlassSize.lsp

Posted

Have a look at this its not the answer but rather your question would be auto generated, there is no reason why you would not just enter a few values in a custom dcl as per movie and your dims and size are auto drawn.

 

 

Posted

BIGAL, you've piqued my interest. What is it? Looks very interesting.

Posted

You need just to work on the formatting of the Mtext to get it the way you want it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...