Save block under new name [solved]

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
Rantanplan7
Senior Member
Posts: 107
Joined: Wed Dec 06, 2017 4:06 pm
Location: Germany - Heidelberg

Save block under new name [solved]

Post by Rantanplan7 » Thu Nov 19, 2020 1:22 pm

Hi Andrew,

question for you. Let's say I have to blocks of a kind in a drawing and I want to edit one without changing the other one. Is there any possibility to save the edited block with a new name?
Last edited by Rantanplan7 on Thu Dec 10, 2020 10:01 am, edited 1 time in total.
Best Regards

Sven

QCAD 3.27.6.0 / Windows 11 Professional 64-bit / 16 GB RAM, i5 [email protected], SSD
(former Autosketch 10 user)

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Save block under new name

Post by andrew » Thu Nov 19, 2020 1:27 pm

No. You would have to duplicate the block before you start working on it.

ljbuller
Active Member
Posts: 37
Joined: Mon Jun 19, 2017 1:52 am

Re: Save block under new name

Post by ljbuller » Thu Dec 03, 2020 4:23 am

What I do is open the block for editing.
select all and copy
open a new drawing
paste the block you copied.
explode the pasted block and edit.
Save as your new file.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Save block under new name

Post by CVH » Thu Dec 03, 2020 5:31 am

Hmm ...
ljbuller wrote:
Thu Dec 03, 2020 4:23 am
What I do is open the block for editing.
select all and copy
Now you have entities in selection.
ljbuller wrote:
Thu Dec 03, 2020 4:23 am
open a new drawing
paste the block you copied.
You didn't had a block in selection!
Now you have a second drawing open and after a paste there are some entities in it.
ljbuller wrote:
Thu Dec 03, 2020 4:23 am
Explode the pasted block and edit.
There are no blocks to explode in the second drawing and one can edit those loose entities at will.
ljbuller wrote:
Thu Dec 03, 2020 4:23 am
Save as your new file.
Changes to, nor saving your second file will reflect in your original file ....
That one is left in Block edit state.

Troubled...CVH
Last edited by CVH on Thu Dec 03, 2020 5:41 am, edited 1 time in total.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Save block under new name

Post by CVH » Thu Dec 03, 2020 5:41 am

That would be:
Copy block reference in file 1
New drawing (2)
Paste
Select block name in Block list
Rename block
Edit block >> alter composition
Back to Model_Space
Copy block reference in file 2
Swap to drawing 1
Paste
No need to save drawing 2

IMHO duplicate block is much easier.
Regards
CVH
Last edited by CVH on Thu Dec 03, 2020 7:28 am, edited 2 times in total.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Save block under new name

Post by Husky » Thu Dec 03, 2020 6:10 am

The proper solution is as andrew suggested it. Nothing else! That is the reason why the "Duplicate Block" functionality was implemented.

viewtopic.php?f=31&t=7800&p=30661#p30387
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Save block under new name

Post by CVH » Thu Dec 03, 2020 8:44 am

Husky wrote:
Thu Dec 03, 2020 6:10 am
The proper solution is as andrew suggested it.
From the guy who always keeps the myth alive that many ways lead to ROM.
https://dictionary.cambridge.org/dictio ... ad-to-rome
'Rome', the city in Italy : https://en.wikipedia.org/wiki/Rome
Not: https://en.wikipedia.org/wiki/Rom

Right, and the 'IMHO' in my post stands for: https://dictionary.cambridge.org/dictio ... glish/imho
IMHO ... 'ljbuller' had it all wrong!
Explained what was wrong with it.
Still I did follow his tracks, 'the other way to Rome'.

I can not understand why constructive debate suddenly isn't allowed anymore.
IMHO: What is NOT given as advise is:
  • How to alter one or more existing or used block reference by an alternative cloned + renamed copy.
- Select the Block to alter in Block list (1 Click) or Select the Block reference itself (1 Click).
- Duplicate Block (BY)
- Comply with the new naming or enter a new name (OK) or not (Cancel)
When cloned with a new name: A clone is created and listed in the Block List.
- Select the Block reference(s) to alter.
- Alter the specific property 'Block' to the new name.
The Block is still a perfect clone:
- Edit the new Block (Double-Click) or R-click in Block List and choose to Edit or 'Edit in Place'.
- Apply any changes.
- Return to Model_space.

Not all possible variations are listed. Sorry for that.
And probably this is "making everything extremely complicated" too. Duly noted.

Regards,
CVH

Rantanplan7
Senior Member
Posts: 107
Joined: Wed Dec 06, 2017 4:06 pm
Location: Germany - Heidelberg

Re: Save block under new name

Post by Rantanplan7 » Thu Dec 03, 2020 3:09 pm

Well I have worked a bit with the ideas given now. Especially with the duplicate function.
Not so ergonomic or I still overlook something.
Given situation: Two or more library blocks of the same kind (lets call it block7) on a complex drawing and I want to make changes to one of the three.
I duplicate the block and rename it (lets call it dupblock7).
Now I get a new entry in the block list - dupblock7.
Next is to insert this dupblock7 into my drawing, but on spot at the position of the block7 I wanted to change.
To keep things simple I have to insert the dupblock7 on a different layer, after that I can delete the block7 underneath it.
And finally I can edit the dupblock7 in place.

So I can mark this now as solved.
Thanks for the discussion.
I have learned a lot the last days about model space and block list, where I have never really payed attention to.
Best Regards

Sven

QCAD 3.27.6.0 / Windows 11 Professional 64-bit / 16 GB RAM, i5 [email protected], SSD
(former Autosketch 10 user)

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Save block under new name

Post by CVH » Thu Dec 03, 2020 4:13 pm

Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
Next is to insert this dupblock7
4- Select the Block reference refering to the old copy.
5- Select another blockname for the Block Specific Property in the Property Editor.
Block2Use.png
Block2Use.png (13.16 KiB) Viewed 14105 times
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Save block under new name

Post by Husky » Fri Dec 04, 2020 12:42 am

@Rantanplan7
Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
Given situation: Two or more library blocks of the same kind (lets call it block7) on a complex drawing and I want to make changes to one of the three.
I duplicate the block and rename it (lets call it dupblock7).
Correct.
Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
Now I get a new entry in the block list - dupblock7.
Correct.
Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
Next is to insert this dupblock7 into my drawing, but on spot at the position of the block7 I wanted to change.
No, follow CVH instruction and use the Property Editor.
Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
To keep things simple I have to insert the dupblock7 on a different layer, ...
Replacing the block within the Property Editor offers also the possibility to change the layer at the same time.


Rantanplan7 wrote:
Thu Dec 03, 2020 3:09 pm
Not so ergonomic or I still overlook something.
I think it is pretty straight forward but as always - you have first to get used to it: :wink:

Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Rantanplan7
Senior Member
Posts: 107
Joined: Wed Dec 06, 2017 4:06 pm
Location: Germany - Heidelberg

Re: Save block under new name

Post by Rantanplan7 » Thu Dec 10, 2020 8:26 am

@Husky,

thanks for the quick tutorial, now I understand how to do it. By the way, are you using Active Presenter to record your desktop?
Unfortunately I have never paid attention to the block list in the past and by repeating what you have shown me I felt into another problem.
I have not checked all library items, but a couple of them and if I place them on a drawing I get two different entries into the block list.
In the attachment you can find first the library item "20_Operator" and a drawing sheet where I have placed that item and got two entries in the block list.
Whatever I do, I cannot figure out why.
Any ideas?
Library_Two_Names.dwg
(28.75 KiB) Downloaded 527 times
20_Operator.dxf
(125.37 KiB) Downloaded 549 times
Best Regards

Sven

QCAD 3.27.6.0 / Windows 11 Professional 64-bit / 16 GB RAM, i5 [email protected], SSD
(former Autosketch 10 user)

Rantanplan7
Senior Member
Posts: 107
Joined: Wed Dec 06, 2017 4:06 pm
Location: Germany - Heidelberg

Re: Save block under new name

Post by Rantanplan7 » Thu Dec 10, 2020 9:59 am

Well after exploring a bit for myself I can make an educated guess about what happened.
In the beginning I exported all library items from Autosketch by placing them on a drawing sheet and saving that as a dxf file.
In QCAD I have made library blocks from them and named them different from the old Autosketch name. Maybe this was causing this strange behaviour - that the block name is different from the file name and to get two entries in the block list.
Now to change this I will open the library blocks as files and not from the library list, and rename the block in the block list.
So I can now finally mark this thread as solved.
Best Regards

Sven

QCAD 3.27.6.0 / Windows 11 Professional 64-bit / 16 GB RAM, i5 [email protected], SSD
(former Autosketch 10 user)

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Save block under new name

Post by Husky » Thu Dec 10, 2020 10:07 am

Hi Rantanplan7,
Rantanplan7 wrote:
Thu Dec 10, 2020 9:59 am
Now to change this I will open the library blocks as files and not from the library list, and rename the block in the block list.
Don't rename just the blocks - please think about my explanation .... :wink:
Rantanplan7 wrote:
Thu Dec 10, 2020 8:26 am
In the attachment you can find first the library item "20_Operator" and a drawing sheet where I have placed that item and got two entries in the block list.
Whatever I do, I cannot figure out why.
A library item should be saved as a simple dxf without any blocks (if possible). Using the QCAD Library browser inserting function will convert a simple dxf drawing to a block. The block name is then the dxf file name. In this case "20_Operator".

Your Library item 20_Operator.dxf is designed with a block called "61_operator". If QCAD now insert this library item into your drawing it loads "20_Operator.dxf", convert it to a block called "20_Operator" and loads at the same time the content with the block called "61_operator" = 2 block entries.

To clean that library item: Load normal the 20_Operator.dxf file into QCAD, in Model_Space select ALL, explode, delete the block "61_operator", save the drawing in your Library Folder with the same name (20_Operator.dxf).

Test the inserting behavior in a new drawing - it should be only one block name listed ... the name should be "20_Operator". e_surprised
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Rantanplan7
Senior Member
Posts: 107
Joined: Wed Dec 06, 2017 4:06 pm
Location: Germany - Heidelberg

Re: Save block under new name [solved]

Post by Rantanplan7 » Thu Dec 10, 2020 10:23 am

Don't rename just the blocks - please think about my explanation .... :wink:
I have already done the renaming with three library entries and they look ok now. There is only one block entry if inserted with the library browser.

To explode them is a lot more work. I have tried that as well but I cannot see any difference on the result.

Your advice to avoid blocks in a library block is not a good idea for me unless it would create massive trouble. Quite often I have to delete a couple of tables from a library block. So I use edit in place and can delete the tables I wish to get rid of very quick instead of deleting multiple lines, dot, etc.
Best Regards

Sven

QCAD 3.27.6.0 / Windows 11 Professional 64-bit / 16 GB RAM, i5 [email protected], SSD
(former Autosketch 10 user)

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Save block under new name [solved]

Post by Husky » Thu Dec 10, 2020 10:31 am

Sounds like a plan. 8)
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Post Reply

Return to “QCAD Suggestions and Feedback”