+ Reply to Thread
Page 1 of 7 1 2 3 ... LastLast
Results 1 to 10 of 68
  1. #1
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default Look up and visibility

    Registered forum members do not see this ad.

    Hi, Im Looking to change a lookup and a visibily state in a dynamic block with a lisp routine

    This routine will change a certain number of tower and a hook radius.

    So I need to give a radius and a height(number of tower)

    To give a bigger picture it is a program for tower cranes.

    Thank for all the help in advance.

    If you need more information don't hesitate to ask

    Cheers & Beers

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,940

    Default

    Have you looked into the Allowed Values of the DynamicBlockProperties Object for the available Visibility State(s)?
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default

    Well I have found a way to get the Visibility State.. but the lookup i can't find it.

    Is there a way to select block already in the drawing them put them in entlast without selecting objets.

    Code:
      (setq Boom (entlast))
      (setq Boom (vlax-ename->vla-objet Boom))
      (vlax-dump-object Boom)
      (setq dbp (vla-getdynamicblockproperties Boom))
      (setq dbp (vlax-variant-value dbp))
      (setq dbp (vlax-safearray->list dbp))
      (setq bp (car dbp))
      (vlax-dump-object bp)
      (setq ListeAdmis (vlax-safearray->list (vlax-variant-value (vla-get-AllowedValues bp))))
      (setq ListeAdmis (mapcar 'vlax-variant-value ListeAdmis))
      (vla-put-value bp B-Radius)
    Test.dwg

  4. #4
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default

    Hi I don,t want to pressure anyone but is it possible to be pointed in the right direction so i can continu my routine. Thank

  5. #5
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default

    test2.dwgOk So ill give more information here!

    Ill give another autocad drawing with it.



    I need to be able to change all those 3 dynamic block with their visibility states.

    If you select all 3 in the drawing you can change the value of then in properties/ custom/visibility1

    in this code here :
    Code:
    (setq fleche '("LC CHARGE 290" "LC B-T 290" "LC C-P 290"))
    (initget 1 "74m 70m 64m 60m 54m 50m 44m 40m")
    (setq b-radius(getkword "\n Donner le rayon de la flèche : "))
      
    
      (vl-load-com)
      (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
      (vlax-for fleche(vla-get-blocks adoc))
      
     
      ;(initget 1 "170 210 290 550")
      ;(setq tower-serie(getkword "\nDonner le modele de la grue : "))
      
      
      (setq fleche (entlast))
      (setq fleche (vlax-ename->vla-object fleche))
      (vlax-dump-object fleche)
      (setq dbp (vla-getdynamicblockproperties fleche))
      (setq dbp (vlax-variant-value dbp))
      (setq dbp (vlax-safearray->list dbp))
      (setq bp (car dbp))
      (vlax-dump-object bp)
      (setq ListeAdmis (vlax-safearray->list (vlax-variant-value (vla-get-AllowedValues bp))))
      (setq ListeAdmis (mapcar 'vlax-variant-value ListeAdmis))
      (vla-put-value bp B-Radius)
    i can change the value of the visibility but i can seem get it to select the blocks i want.
    Last edited by CadFrank; 13th Apr 2012 at 06:27 pm.

  6. #6
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default

    Hi, i really need some help here ive been working on this since 3 days can't seem to get anywhere please help me out i'm about to lose my head!

  7. #7
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default Why

    why am i not getting any answers to my post??

  8. #8
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,039

    Default

    Which post are you referring to?

    Could be no one has an answer. Or it could be the question is not understood but no one has bothered to either say so or to ask for follow-up information.

    Could be things are a bit slow; everyone is kind of busy perhaps.

    We are, after all, only volunteers and not paid staff.

    I'm sure it is not intentional. These things do happen though.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  9. #9
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2011
    Posts
    222

    Default

    Its the third Post

    I'm sorry i must sound kinda mad.. lol I just been trying to solve this routine for so long ... Don't know where to go anymore.

  10. #10
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,039

    Default

    Registered forum members do not see this ad.

    Is this the one you are referring to?

    Hi, Im Looking to change a lookup and a visibily state in a dynamic block with a lisp routine.

    The low number of responses may have something to do with the fact that 1) it involves a dynamic block and 2) the fact you are looking for help with a lisp routine. That reduces the number of people who will look at the question and attempt to help as they have to be knowledgeable in both areas.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

Similar Threads

  1. Wipeout visibility-help
    By AvisRara in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 9th Jul 2011, 03:00 am
  2. red visibility parameter
    By michaeloureiro in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 6th Feb 2009, 11:08 am
  3. Filter By Visibility
    By Yoland in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 31st Jan 2008, 08:39 am
  4. nest visibility parameters inside visibility parameters ??
    By cadmench in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 30th Nov 2007, 08:26 pm
  5. STB and CTB visibility
    By Barry Clark in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 17th Nov 2004, 09:25 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts