Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. CarlAK

    vba write a dxf file

    Could you not just have the macro execute AutoCAD's "dxfout" command and get the dxf file you desire? Or are you creating it from some other source than AutoCAD? Of course the dxf format will depend if it's an "lwpolyline" or "heavy" polyline, possibly with varying z values, arcs, smoothing...
  2. CarlAK

    Programmatically Make RevCloud in .NET

    The command "revcloud" is a standard AutoCAD command (as of 2007?); it used to be a "Bonus" then later "Express" Tool. You can find the Express Tools lisps at C:\Program Files\Autodesk\AutoCAD 20xx\Express A quick search found this lisp...
  3. CarlAK

    Autocad to Illustrator maintaining editable text

    Some suggestions at http://printplanet.com/forums/adobe/14831-convert-pdf-illustrator
  4. CarlAK

    LISP: If, Not

    I think your "if" got messed up, you wanted 2 statements to occur if not. Slightly different coding: (setq imagename (getvar "dwgname")) (setq imagename (substr imagename 1 (- (strlen imageName) 4))) (setq filename (strcat (getvar "dwgprefix") imagename ".cal")) (if (not (findfile filename))...
  5. CarlAK

    LISP: If, Not

    It seems you don't have the routine actually looking if the "filename" exists, you just assign it a string/name, so it would never be 'nil' Maybe changing one line to the following will do it; (if (not (findfile filename))
  6. CarlAK

    Update "DATE" field via lisp routine

    From that last message, sounds like you ran "upd" while in MS, but the block is in PS? Any difference if you run it from PS? I really need to sse the setup, I'd be gals to look at if you email me an example drawing to address I posted above.
  7. CarlAK

    Update "DATE" field via lisp routine

    OK I saw the second link... 1. Seeing it is a block with attributes it should have worked if you edited the code for block name (0 . "INSERT") (cons 2 "Vac Title Block_Original") 2. In the editor dialogue box at the link, no "value" is shown for he "date" tag, is that correct? With my test the...
  8. CarlAK

    Update "DATE" field via lisp routine

    For some reason that link doesn't wotrk for me. What would be most helpful would be if you could send me a drawing, c a b AT e e i t e a m DOT c o m
  9. CarlAK

    Update "DATE" field via lisp routine

    Hmmm, don't know offhand,as it worked for a simple test block, single attribute with a "date" field. Looks like the block is getting selected but the field is not found/updated. Are you sure the date field is really an attribute versus some stand alone mtext field? If this is the case, the code...
  10. CarlAK

    Update "DATE" field via lisp routine

    OK as usual I had some typos..I actually tested the following code: (defun c:upd () (setq tb_set (ssget "_X" (list '(0 . "INSERT") (cons 2 "block_name_here")))) (if tb_set (command "._UPDATEFIELD" (ssname tb_set 0) "") ) (princ) )
  11. CarlAK

    Update "DATE" field via lisp routine

    Try the following lisp routine..once we get it working it could be placed in acad.lsp file & modified to run upon opening a drawing. (defun c:upd () (setq tb_set (ssget "_X" (list '(0 . "INSERT") (cons 2 "Title_block_name_here")))) (if tb_set (command "._UPDATEFIELD" (ssname 0 tb_set)...
  12. CarlAK

    Update "DATE" field via lisp routine

    If the date needs to be updated just when you open the drawing, I believe that can be handled with come code in acad.lsp or acaddoc.lsp file, rather than using the reactor method. A reactor is code that is executed upon some event, such as when a certain command is issued, the reactor code...
  13. CarlAK

    Update "DATE" field via lisp routine

    Since you're using a field then you'd use a somewhat different approach. According to help, "Note-The Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable." How/when would you want this field/date updated? Is this for...
  14. CarlAK

    Controlling User Deleted Items

    I don't know VBA, but... If you have object ID, can't you un-delete (restore) it, then retrieve info, then re-delete it? In lisp, (entdel Entityname) will restore an objected delted during the editing session.
  15. CarlAK

    Creating LiSP to isolate drawing layers w/ & w/out Xrefs

    I believe the "*BH-*" will affect all layer names that include the "BH-" anywhere within it, so including the xref layers. Learn lisp just like you are doing- -review other code -experiment writing your own -visit & ask questions at forums-cadtutor, theswamp.org, Autodesk, www.afralisp.com is...
  16. CarlAK

    Creating LiSP to isolate drawing layers w/ & w/out Xrefs

    And one other option, a modification of issuing the layer command. Instead of: (foreach x LayList (setq LayName (strcat x)) (command "layer" "off" LayName "" "") ); keep the layer command active with: (command "layer") (foreach x LayList (command "off" x) ); (command "" "")
  17. CarlAK

    Creating LiSP to isolate drawing layers w/ & w/out Xrefs

    That doesn't seem like very many layers, I would have thought that would take a few seconds. Maybe the drawing is regenerating after each command, you could turn off regens as part of the routine. two syntax comments; -shouldn't have a semicolon after layer name "*|B-150U50-54"; and the 2...
  18. CarlAK

    Set Limits to Dimscale

    I tried getvar(dimscale)*[36,24] and it returned 3 numbers separated by commas (such as 36,24,0) which was probably rejected by the limits command
  19. CarlAK

    Enhanced Attribute Editor

    You could try re-installing AutoCAD then the recommended SP's...just a thought.
  20. CarlAK

    2010 toolbar button image

    These may give you some things to try: http://forums.cadalyst.com/showthread.php?t=4584 http://forums.augi.com/showthread.php?t=44752

Part and Inventory Search

Back
Top