
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone:
I want to create automatic dimensions for a baseplate.
1.- I have the lisp for creating the baseplate and its holes, I think it's ok.
(defun C:PLACABASE ( / pt1 pt2 pt3 pt4 Ancho Alto Radio Anchoejex Anchoejey agujero11 agujero12 agujero21 agujero32)
(command "-layer" "set" "Acero Estructural" "")
(setq Ancho (getint "\nInserte Ancho de placa: "))
(setq Alto (getint "\nInserte Alto de placa: "))
(setq pt1 '(0 0 0))
(setq pt2 (list Ancho 0 0))
(setq pt3 (list Ancho Alto 0))
(setq pt4 (list 0 Alto 0))
(command "line" pt1 pt2 pt3 pt4 "c")
(setq Radio (getint "\nInserte Radio de Agujero: "))
(setq Anchoejex (getint "\nInserte distancia de separacion para el eje x: "))
(setq Anchoejey (getint "\nInserte distancina de separacion para el eje y: "))
(setq agujero11 (+ Anchoejex 0))
(setq agujero12 (- Alto Anchoejey))
(setq agujero21 (- Ancho Anchoejex))
(setq agujero32 (+ Anchoejey 0))
(command "circle" (list agujero11 agujero12) Radio
"circle" (list agujero21 agujero12) Radio
"circle" (list agujero11 agujero32) Radio
"circle" (list agujero21 agujero32) Radio
))
2.- I need to create an automatic dimension like this image.
3.- I have my own dimension style, text style, and separation between line and dimensions, I have some predefined scales with the styles, these scales are the most usual for my work like this image.
4.- Another problem I have is the scale, I need to add structural details like the baseplate, but generally the drawings are in 1:75 scale, and the details need 1:10 scale, is necessary to create a new dimension style that starts with the original dimension scale for example this image the scale of the drawing plant view is 1:75 and the details are in 1:10 with the same dimension style but different scale factor:
5.- I was trying with the first lisp something like this without success. I try to get the generated points, and make a reference for the new dimensions.
(command "dimlinear" (list 0 Alto) (list Ancho Alto) (+ Alto +30))
(30 is the separation between the line and dimension according the scale that is working)
Thanks for the given attention, I hope you can understand the idea, my English is too bad.
Best Regards my friends
Solved! Go to Solution.