Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 9
Anonymous
536 Views, 8 Replies

val-insertblock

If someone edits a block in our library we have an ability to force it back
to standard. This no longer works using vla-insertblock and dynamic blocks

see below and attached pic


This does not happen if I use (vl-cmdf "insert"
"blockname=path+blockname".....



Jamie


Command:
LIST
Select objects: 1 found

Select objects: Specify opposite corner: 2 found (1 duplicate), 2 total

Select objects:

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 3080
Block Name: "ARCTDDYNL"
Anonymous Name: "*U8"
at point, X= 17970.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 2a66
Block Name: "ARCTDDYNL"
Anonymous Name: "*U5"
at point, X= 16895.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
Press ENTER to continue:
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

Command: re
REGEN Regenerating model.
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

thanks to everyone that chipped in with their expertise on this one...



TDP

"The Dark Princess" wrote in message
news:6328120@discussion.autodesk.com...
If someone edits a block in our library we have an ability to force it back
to standard. This no longer works using vla-insertblock and dynamic blocks

see below and attached pic


This does not happen if I use (vl-cmdf "insert"
"blockname=path+blockname".....



Jamie


Command:
LIST
Select objects: 1 found

Select objects: Specify opposite corner: 2 found (1 duplicate), 2 total

Select objects:

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 3080
Block Name: "ARCTDDYNL"
Anonymous Name: "*U8"
at point, X= 17970.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 2a66
Block Name: "ARCTDDYNL"
Anonymous Name: "*U5"
at point, X= 16895.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
Press ENTER to continue:
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

Command: re
REGEN Regenerating model.
Message 3 of 9
Anonymous
in reply to: Anonymous

(T nil)


"The Dark Princess" wrote in message
news:6328999@discussion.autodesk.com...
thanks to everyone that chipped in with their expertise on this one...



TDP

"The Dark Princess" wrote in message
news:6328120@discussion.autodesk.com...
If someone edits a block in our library we have an ability to force it back
to standard. This no longer works using vla-insertblock and dynamic blocks

see below and attached pic


This does not happen if I use (vl-cmdf "insert"
"blockname=path+blockname".....



Jamie


Command:
LIST
Select objects: 1 found

Select objects: Specify opposite corner: 2 found (1 duplicate), 2 total

Select objects:

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 3080
Block Name: "ARCTDDYNL"
Anonymous Name: "*U8"
at point, X= 17970.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

BLOCK REFERENCE Layer: "A-DOOR"
Space: Model space
Handle = 2a66
Block Name: "ARCTDDYNL"
Anonymous Name: "*U5"
at point, X= 16895.42 Y= 18104.58 Z= 0.00
X scale factor: 25.00
Y scale factor: 25.00
rotation angle: 0.00
Z scale factor: 25.00
Scale uniformly: Yes
Allow exploding: No
DOORWIDTH: 925.00
Swing: Left
FRAMEWIDTH: 50.00
FRAMEDEPTH: 125.00
Press ENTER to continue:
SwingDirection: Out
DOORSTYLE: Single90
SIDELITE: 900.00

Command: re
REGEN Regenerating model.
Message 4 of 9
ScottHodges
in reply to: Anonymous

Dear Jamie
I just noted that you posted at 6:30 pm, and then complained that no one had responded by 9:30 pm. I know some people work that late, but please allow for the fact that some have families that we like to spend time with. You may also be located in a very different time zone to many of the users that may have an answer to your problem. I'm sorry that I don't have an answer to your problem, which I unfortunately don't quite understand how you are updating a block. I assume you have restored the block in the source library and are trying to redefine it in the detail drawing.
Scott
Message 5 of 9
Anonymous
in reply to: Anonymous

I posted at 1:30 on the 1st and waited til 16:38 on the 2nd (eastern time).
I said nothing until the thread above had already received responses.

I have a thread in the customization that no one has responded to since the
20th of january.

TDP



wrote in message news:6329109@discussion.autodesk.com...
Dear Jamie
I just noted that you posted at 6:30 pm, and then complained that no one had
responded by 9:30 pm. I know some people work that late, but please allow
for the fact that some have families that we like to spend time with. You
may also be located in a very different time zone to many of the users that
may have an answer to your problem. I'm sorry that I don't have an answer to
your problem, which I unfortunately don't quite understand how you are
updating a block. I assume you have restored the block in the source library
and are trying to redefine it in the detail drawing.
Scott
Message 6 of 9
Anonymous
in reply to: Anonymous



Based on the clear and precise explanation of the issue and the functions leading to the problem, I'd say you need to reverse the polarity of the slamagen.

Message 7 of 9
Anonymous
in reply to: Anonymous


It's a problem with visual lisp and dynamic blocks

 

If you don't know visual lisp then no explanation
will help and you cannot help.

 

If you know visual lisp then the coding is
understood and the picture says 1000 words.

 

TDP


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
Based
on the clear and precise explanation of the issue and the functions leading to
the problem, I'd say you need to reverse the polarity of the slamagen.
Message 8 of 9
Anonymous
in reply to: Anonymous

Well, I doubt I can help, but if the block truly has been re-defined in your
drawing, and it *still* isn't doing what it's supposed to, could something
as simple as a "RESETBLOCK" perhaps work? (I don't know what havoc that may
wreak on your drawing.)

I don't know what functions you use to access your DBs, but just in case you
weren't aware, Tony Tanzillo posted code long ago in the customization
discussion group that made accessing and changing DB properties easier - See
Thread "DynamicBlock method" started by Marc'Antonio Alessi on 05/12/2005.

I'm also not sure what version of AutoCAD you are using - we are still using
2008 at our office.

hth,
David Kozina

PS - If you have a DB, and later need to redefine it making EXTENSIVE
changes - would it perhaps be more effective to give it a new name
altogether, and replace the existing insertions with the new block? ie,
extract the old properties of the original block that are still applicable,
and re-insert the new one at the original locations?


"The Dark Princess" wrote in message
news:6329930@discussion.autodesk.com...
It's a problem with visual lisp and dynamic blocks

If you don't know visual lisp then no explanation will help and you cannot
help.

If you know visual lisp then the coding is understood and the picture says
1000 words.

TDP
wrote in message news:6329553@discussion.autodesk.com...
Based on the clear and precise explanation of the issue and the functions
leading to the problem, I'd say you need to reverse the polarity of the
slamagen.
Message 9 of 9
Anonymous
in reply to: Anonymous

David,

Thank you very much for the information.
I have played with the resetblock method and it is necessary to try to save
the previous settings of the block before resetting and this doesn't always
workm especially if a flip is involved.

Consequently this is what I now use:

(if (not (vl-catch-all-error-p (vl-catch-all-apply 'vl-cmdf
(list ".insert" (strcat
(vl-filename-base bnmr) "=" bnmr) "s" "1" "0,0" "0")
)
)
)
(entdel (entlast))
)

This does the trick nicely except for the fact that it is a command in lieu
of vlisp.


TDP



"David Kozina" wrote in message
news:6329985@discussion.autodesk.com...
Well, I doubt I can help, but if the block truly has been re-defined in your
drawing, and it *still* isn't doing what it's supposed to, could something
as simple as a "RESETBLOCK" perhaps work? (I don't know what havoc that may
wreak on your drawing.)

I don't know what functions you use to access your DBs, but just in case you
weren't aware, Tony Tanzillo posted code long ago in the customization
discussion group that made accessing and changing DB properties easier - See
Thread "DynamicBlock method" started by Marc'Antonio Alessi on 05/12/2005.

I'm also not sure what version of AutoCAD you are using - we are still using
2008 at our office.

hth,
David Kozina

PS - If you have a DB, and later need to redefine it making EXTENSIVE
changes - would it perhaps be more effective to give it a new name
altogether, and replace the existing insertions with the new block? ie,
extract the old properties of the original block that are still applicable,
and re-insert the new one at the original locations?


"The Dark Princess" wrote in message
news:6329930@discussion.autodesk.com...
It's a problem with visual lisp and dynamic blocks

If you don't know visual lisp then no explanation will help and you cannot
help.

If you know visual lisp then the coding is understood and the picture says
1000 words.

TDP
wrote in message news:6329553@discussion.autodesk.com...
Based on the clear and precise explanation of the issue and the functions
leading to the problem, I'd say you need to reverse the polarity of the
slamagen.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report