Code Red > AutoLISP (Vanilla / Visual)
multiple radio buttons working together?
sln8458:
I have started a new project.
A DCL/LSP to insert 3D piping components. sorry for the poor image quality.
Following the same general direction as my previous post, in that I have a 'dim' text file that contains the list box info, the file name of the drawing to be inserted, followed by the values for the dimensions.
Concentrating on the flanges,
there is the box for selecting the flange 'type'
then radio buttons for RF or RJF
then 'schedule' and finally 'class'
example: WN + RF + sch60 + #300 = dim file.
All of these are required before selecting the specific flange size followed by OK
That will mean
5 options for type
2 options for face
10 options for schedule
7 options for class
total 700 permutations, if my maths is correct? which also means 700 'dim' files! (the easy bit for me)
Before I attempt any further code, what is the simplest way to achieve the end result?
Steve
Lee Mac:
--- Quote from: sln8458 on August 04, 2020, 08:52:49 AM ---sorry for the poor image quality.
--- End quote ---
I would suggest using a lossless compression format such as PNG when taking screenshots, rather than lossy compression formats such as JPG which are more suited to photographs.
sln8458:
I scanned the internet for help on this and the nearest I came to was here
https://www.afralisp.net/dialog-control-language/tutorials/dialog-boxes-and-autolisp-part-2.php
I downloaded the code and set about modifying to trial some code.
This is what I have,
For each column I have set a variable.
I have then concatenated the results for each variable.
The goal for this section of the dialogue is to set the file name that will be loaded to fill the list box in the full dialogue.
I have set a (princ fname) to display the concatenation results.
The code appears to work,BUT
on the command line the concatenation appears to be one selection behind??
See attached files
Is it me?
Steve
DEVITG:
Once upon a time , about 2005 , I had asked to do all "allen" screw , cylindrical head the user can find at his vendor.
There was no nothing at the web .
So I ask him to ask his vendor for all his each unit at stock .
Get the ISO standard , we use millimeters, and suit a csv file , from xls with all the relative measures .
With such csv I did a lisp to draw , each screw, in 3d , and to be a block inside the dwg . Them by design center CTRL+2 , then user chose what he wants and insert it at is dwg .
So as flanges are one and unique for each use , there is no need to draw it each time.
Of course by this day you can have anything from vendors websites. Or from CADENAS cad dwgs or
https://b2b.partcommunity.com/community/members/home
No dialog box no typing error.
The concept is the same the piping constructor will do for a work to do , get what he need with no error, the self.
And last but not least
DO NOT REINVENT THE WHEEL
BIGAL:
Dynamic blocks are the way to go for bolts and screws etc.
Navigation
[0] Message Index
[#] Next page
Go to full version