Add dxf to another as a block
Moderators: SDS, support, admin
Add dxf to another as a block
There are a number of dxf files that need to be added separately to the base dxf file as a block. Then each of these blocks may need to be moved, scaled, or angled.
any idea or some clues? Thanks.
any idea or some clues? Thanks.
Re: Add dxf to another as a block
Hello
My idea:
1. Using TsgCADdxfImage to open the main .dxf file and load to TImage (is that possible to zoom by this method?)
2. Using another TsgCADdxfImage to open sub .dxf files. Make them block (TsgDXFBlock) and add them to the main TsgCADdxfImage and TTreeView list.
3. Select from TTreeView (or select by clicking on the TImage!).
4. Get the block object by clicking on the TTreeView node or TImage.
5. Move, rotate, and scale the block.
6. Save the file.
Please approve or disapprove of my idea and give me a clue for each part. Thanks.
Hamed
My idea:
1. Using TsgCADdxfImage to open the main .dxf file and load to TImage (is that possible to zoom by this method?)
2. Using another TsgCADdxfImage to open sub .dxf files. Make them block (TsgDXFBlock) and add them to the main TsgCADdxfImage and TTreeView list.
3. Select from TTreeView (or select by clicking on the TImage!).
4. Get the block object by clicking on the TTreeView node or TImage.
5. Move, rotate, and scale the block.
6. Save the file.
Please approve or disapprove of my idea and give me a clue for each part. Thanks.
Hamed
Re: Add dxf to another as a block
Hello Hamed,hamedjim wrote: ↑05 Feb 2023, 11:02Hello
My idea:
1. Using TsgCADdxfImage to open the main .dxf file and load to TImage (is that possible to zoom by this method?)
2. Using another TsgCADdxfImage to open sub .dxf files. Make them block (TsgDXFBlock) and add them to the main TsgCADdxfImage and TTreeView list.
3. Select from TTreeView (or select by clicking on the TImage!).
4. Get the block object by clicking on the TTreeView node or TImage.
5. Move, rotate, and scale the block.
6. Save the file.
Please approve or disapprove of my idea and give me a clue for each part. Thanks.
Hamed
Yes, you can open a file using TsgCADdxfImage, but it is better to use TsgDrawingNavigator, where file loading is implemented as well. Also, we have a possibility of adding an Insert as XRef to the main .dxf file.
You can have a look at how XRef adding is implemented in our demo at \Delphi\Demos\TextChange+Color2LineWeight+MergeFiles\TextChange_Color2LineWeight_MergeFiles.dproj.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support