Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/13/2024 in all areas

  1. Hi @BIGAL sorry for the late reply, Currently I'm out of home.I’m trying to simplify drawing crank bars on column elevations, which I usually do manually. Ideally, I’d like everything to work through the command prompt, but a DCL dialog box could be helpful to learn about for future reference. Z1: Calculates H as the sum of the level 1 and level 2 bar diameters plus a cushion (1/4”), and K as H * 6 (using a 1:6 crank ratio). Z2: Allows manual entry of H and K values. Z3: Similar to Z1, but includes an offset in the H calculation. Z4: Uses predefined values for H and K. I initially tried to make the crank ratio universal across Z1 and Z3 in a single command but ended up separating them for simplicity. I’m also try to adding a feature to the Z4 command to allow non-coders to update H and K values through the command prompt, instead of having to open and edit the LISP file directly but this was optional.
    1 point
  2. This was worth having a look at. AutoCAD Tips, Tricks, and the Most-Classy Drafting Techniques
    1 point
  3. Can you post a sample dwg with some cranks. If I am looking at this correctly then can have one command but options in the command for crank directions via a dcl something like this.
    1 point
  4. You might have a 'wrapper' LISP to run the other commands: (defun c:test ( / ) (c:Z1) ) which will run the command Z1. To make this more useful you might want to put all the 'get' commands into test LISP and pass the values to the next one: (defun c:test ( / k-multiplier ) (setq k-multiplier (getint (strcat "\nEnter Crank Ratio <" (rtos crank:prev-multiplier 2 0) ">: ")) k-multiplier (if k-multiplier k-multiplier crank:prev-multiplier) ) ; end setq (c:Z1 k-multiplier) ) and to receive a value in Z1: (defun c:Z1 ( k-multiplier / s p..... obviously disabling the questions you place in the wrapper to stop them being asked twice. I haven't looked through the code to see what you can replace but maybe this might give you a hint of a direction to head in? Once you have placed all the 'get' questions in the wrapper you might be able to use an if statement to run the correct code according to what information has been entered
    1 point
×
×
  • Create New...