Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/07/2025 in Posts

  1. however... quite aggressive asking for the credit here today. Nicer ways to go "Hey, this was originally my code, can you credit me" and perhaps if possible the link to the original code to help the OP out. Code gets shared, the links and credits lost. Always good practice to add links to the sources and credits in case there are thing you want to go back and understand more from any discussions. Having said that though, upload code, you have no control of it's use and I am not sure I'd want credited with a base code that is mine and then heavily modified, or just a snippet of my code included in something larger without me doing checks and testing.
    5 points
  2. It is impossible to disagree with that.
    1 point
  3. Have you checked the setting for implied windowing? It's in Options under Selection|Selection Modes. Or look at your PICKAUTO system variable and see if it's set to 0.
    1 point
  4. @aridzv I am very grateful to you! That's what I need! Good luck!
    1 point
  5. see below: (defun c:ChDimTxtCol1 (/ i sel ent obj) (vl-load-com) (setq i 0) ;(setq DimTextColor 1) (if (setq sel (ssget '((0 . "*DIMENSION")))) (progn (repeat (sslength sel) (setq ent (ssname sel i)) (setq obj (vlax-ename->vla-object ent)) (if (/= (vlax-get obj 'textoverride) "") (vlax-put-property obj 'TextColor 1) ;(vlax-put-property obj 'TextColor DimTextColor) );if (setq i (+ i 1)) );end repeat );end progn (alert "No Dimensions selected") );end if sel (princ) );defun *EDIT: I removed the "DimTextColor" varaible because it is redandet and set the textcolor directly to 1 this way: (vlax-put-property obj 'TextColor 1)
    1 point
  6. The blocks appear to be identical apart from the fact that each block is given an individual name. They appear to have the same attributes but in different order. So my question is why do you not just have one block ? But with all the details different each time you insert that block. Are you using some form of software to make the blocks ? The blocks just look to random. Are you copying and pasting from other dwg's ? I think if you give us some background on how your getting to this point we may be able to fix it for the next dwg.
    1 point
  7. You can check has text been overidden. ; TextOverride = "<> ABC" ABC added ; TextOverride = "" this has not been cahnged (vlax-get obj 'textoveride)
    1 point
  8. add xdata to create a dimstyle override , in python it would be xd = [(1001, "ACAD"), (1000, "DSTYLE"), (1002, "{"), (1070, 178), (1070, 1), (1002, "}")] # add dim override @command def doit2(): ps, id, _ = Ed.Editor.entSel("\nSelect:", Db.Dimension.desc()) if ps != Ed.PromptStatus.eOk: return dim = Db.Dimension(id, Db.OpenMode.kForWrite) # todo check if there's aready a dimstyle override # 178 = dimclrt # 1 is red xd = [(1001, "ACAD"), (1000, "DSTYLE"), (1002, "{"), (1070, 178), (1070, 1), (1002, "}")] dim.setXData(xd)
    1 point
  9. I would only trust Autodesk or an OFFICIAL reseller to purchase Autodesk products. You might look into DraftSight® as well. There are other alternatives that are low cost as well, this list isn't up to date, but still relevant I think. Low cost CAD programs. - Useful Links - AutoCAD Forums
    1 point
  10. Bricscad and Autocad are virtually identical, so there's no learning curve. If you know Autocad you can use Bricscad. They have a trial version. You should download and check it out. https://www.bricsys.com/
    1 point
×
×
  • Create New...