Jump to content

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


Recommended Posts

Posted

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

  • 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

Posted

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.

Posted
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.

Posted

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]

Posted
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:

Posted

I've always used the method shown without problem - no need to apologise Renderman.

Posted

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.

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...