Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/15/2021 in all areas

  1. If I understand you correctly, want to zoom to all your text with a color index of 7? If that is the case this should work for you: (defun c:abc123 (/ ss) (if (setq ss (ssget "X" '((0 . "*TEXT")(62 . 7)))) (progn (command "zoom") (mapcar 'command (acet-geom-ss-extents ss 1)))))
    1 point
  2. You can also use the fnsplitl function: _$ (fnsplitl "C:\\test.txt") ("C:\\" "test" ".txt")
    1 point
  3. i realy like the ,metxt, part
    1 point
  4. also making use of 'dcl defun' suggested by master Lee to make the code more compact : rb : radio_button {fixed_width=true;width=18;} eb : edit_box {fixed_width=true;width=18;} parcel : dialog {label=" Parcel with columns"; spacer; : row { : column {children_fixed_height=true; :boxed_radio_row {label="Test1"; :rb {label="Polyline";key="tpol";value="1";} :rb {label="Mtext";key="tmtex";}} :boxed_radio_row {label="Test2"; :rb {label="Color";key="ttep";value = "1";} :rb {label="LineWeight";key="ttem";}} :boxed_radio_row {label="Closed Polyline"; :rb {label="In";key="tiin";value="1";} :rb {label="Out";key="tiout";}} :boxed_radio_row {label="UnClosed Polyline"; :rb {label="Up";key="tiup";value="1";} :rb {label="Bottom";key="tibottom";}} } : column {children_fixed_height=true; :boxed_row {label="Value 1";:eb {key="eb_val1";}} :boxed_row {label="Value 2";:eb {key="eb_val2";}} :boxed_row {label="Value 3";:eb {key="eb_val3";}} spacer;spacer;spacer; } } spacer; :column {:row {fixed_width=true;alignment=centered; :button {key="bt_save";label="Save";}:button {is_default=true;key="bt_exit";label="Exit";}}} } parcel2 : dialog {label="Parcel with rows";spacer; : row {:column {label="Test1";:radio_row {:rb {label="Polyline";key="tpol";value="1";} :rb {label="Mtext";key="tmtex";}}} :eb {label="Value 1";key="eb_val1";}} : row {:column {label="Test2";:radio_row {:rb {label="Color";key="ttep";value = "1";} :rb {label="LineWeight";key="ttem";}}} :eb {label="value 2";key="eb_val2";}} : row {:column {label="Test3";:radio_row {:rb {label="In";key="tiin";value="1";} :rb {label="Out";key="tiout";}}} :eb {label="value 3";key="eb_val3";}} : row {:column {label="UnClosed Polyline";:radio_row {:rb {label="Up";key="tiup";value="1";} :rb {label="Bottom";key="tibottom";}}}spacer;:row {width=18;}} spacer; :column {:row {fixed_width=true;alignment=centered; :button {key="bt_save";label="Save";}:button {is_default=true;key="bt_exit";label="Exit";}}} }
    1 point
  5. that works too Lee, more than one road lead to Rome
    1 point
  6. The key is to define the radio_button tiles to each have the same fixed width, large enough to accommodate the largest of your labels; for this, I would suggest defining a custom radio_button tile which may then be used through the remainder of the dialog definition, e.g.: rb : radio_button { width = 18; fixed_width = true; } test : dialog { spacer; : boxed_column { label = "Test 1"; : radio_row { : rb { key = "tpol"; label = "Polyline"; } : rb { key = "tmtx"; label = "MText"; } } spacer; } : boxed_column { label = "Test 2"; : radio_row { : rb { key = "ttep"; label = "Colour"; } : rb { key = "ttem"; label = "Lineweight"; } } spacer; } ok_cancel; }
    1 point
  7. I would suggest that you stop using annotative scaling for your dimensions and text, take them out of model space and put them in your paper space layout. A lot less hassle and few if any system variables to deal with.
    1 point
×
×
  • Create New...