Jump to content

Greating a lisp to get a rectangle and impotting a block in it


CadFrank

Recommended Posts

Hi i would have another interresting question regarding the insertion on a block in a box .. it it possible to put in a dynamic block according a visibility name

Link to comment
Share on other sites

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • CadFrank

    11

  • paulmcz

    7

  • Tharwat

    3

  • irneb

    2

Top Posters In This Topic

Posted Images

I am out of this as I have no idea what is involved when it comes to dynamic blocks. Never had a chance to work with them.

Link to comment
Share on other sites

Hi i would have another interresting question regarding the insertion on a block in a box .. it it possible to put in a dynamic block according a visibility name

 

Yes, if you're adept at Visual LISP.

 

Look into applying this:

 

(vlax-put-property [color=red]<VisibilityPropertyObject>[/color] 'vlaue [color=red]<VisibilityStateName>[/color])

 

... on the resulting DynamicBlockProperties Object when using the GetDynamicBlockProperties Method on the Block Object (

 

Edit: The value being applied to the must be included in the AllowedValues Property for the same Object.

Link to comment
Share on other sites

You may need to use:

 

(vla-put-value [color=red]<DynamicBlockProperty>[/color] 
 (vlax-make-variant [color=red]<VisibilityStateName>[/color] (vlax-variant-type (vla-get-value [color=red]<DynamicBlockProperty>[color=black])))
)

 

See here for a set of Dynamic Block Functions.

[/color][/color]

Link to comment
Share on other sites

You may need to use:

 

Perhaps I've misremembered (and misrepresented) supplying a String in lieu of a Variant for the value... It has been a while since I wrote the only routine I used for Dynamic Blocks??? :oops: If I have, then I apologize.

 

I'm trying to teach myself too much, purging information I've already learned (or so I thought!). :lol: LoL

 

Cheers! :beer:

Link to comment
Share on other sites

Hey well i started to read my book but i don't think is fully adapted to autolisp. I can't see what the description of "vla" anywhere. I'm still trying to understand alot of thing for autolisp can't see to understand how to put all the script together. but i guess ill eventually figure it out.

 

But any how! should i intergrate the routine up there with the routine you gave me this morning?

 

So ill leave you on this and try to read up somemore to understand everything.

Link to comment
Share on other sites

I can't see what the description of "vla" anywhere.
Perhaps look at this: http://docs.autodesk.com/ACD/2011/ENU/filesALG/WS73099cc142f4875516d84be10ebc87a53f-7c00.htm

 

Unfortunately AutoDesk (in their infinite wisdom) has decided to omit the ActiveX/COM references from the online help. The only place I can still get at it is using my 2008's acadauto.chm file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...