Search found 5 matches
- 09 Nov 2010, 19:16
- Forum: CAD VCL
- Topic: Add Attribs to DXFInsert
- Replies: 3
- Views: 18836
Re: Add Attribs to DXFInsert
Hello Alexander. Then I will stop searching what I did wrong. I will work-around this (maybe by using text instead of attributes or moving the attributes manually after the insert is moved). I expected the attributes should be moving with the block, because that is the way Autocad works. Thank you f...
- 09 Nov 2010, 16:19
- Forum: CAD VCL
- Topic: Creating a block from a dxf file
- Replies: 3
- Views: 20507
Re: Creating a block from a dxf file
Hello Alexander, Thank you for your answer. Now I know I use the correct method. I just found that I have to place the AddEntity function for the new layer after assigning all data to that new layer. Wrong: if Check then begin tL:=TsgDXFlayer.Create; Target.Sections[csLayers].AddEntity(tL); tL.Assig...
- 08 Nov 2010, 18:03
- Forum: CAD VCL
- Topic: Add Attribs to DXFInsert
- Replies: 3
- Views: 18836
Add Attribs to DXFInsert
I have a problem to add Attribs to a DXFInsert with the following code: function InsertFileAsBlock(const FileName, BlockName:string; Target:TsgDXFConverter; Scale:double; InsPoint:TFPoint):boolean; var InsCADFile:TsgCADImage; InsConv:TsgDXFConverter; DxfIns:TsgDXFInsert; Block:TsgDXFBlock; i,j:integ...
- 03 Nov 2010, 16:28
- Forum: CAD VCL
- Topic: Creating a block from a dxf file
- Replies: 3
- Views: 20507
Re: Creating a block from a dxf file
Follow up of the above question: I managed to create a block from a dxf file. A few questions: Is this the right method to do this, or is there a better way (this requires a lot of extra programming for dim styles and so on)? The newly create block is not shown in colors (only black). However, in th...
- 03 Nov 2010, 10:57
- Forum: CAD VCL
- Topic: Creating a block from a dxf file
- Replies: 3
- Views: 20507
Creating a block from a dxf file
I need to insert an existing .dxf file as blocks into the main CADImage (TsgDrawingNavigator). I read the .dxf and copy all entities to a block (the layers/linetype will be done later, the testfile has only 1 polyline in layer 0). When I run the program I see the new block in the drawing. As soon as...