Hi,
The block cannot be inserted with C++Builder and it embarrasses it.
Is there succeeding in BCB though it moves correctly in Delphi?
CAD Import VCL & C++Builder
Moderators: SDS, support, admin
Hello,
The following lines describe how to get access to entities if block and inserts.
Sergey
please post questions to the forum or write to support@cadsofttools.com
The following lines describe how to get access to entities if block and inserts.
Code: Select all
TListBox *listboxBlocks;
void __fastcall TForm1::ReadCADEntities(TsgDXFEntity * Entity)
{
...
<b>if</b> (FCADParams.Insert)
{
<b>if</b> (listboxBlocks->Items->IndexOfObject(FCADParams.Insert) == -1) // whether new Insert is in the list
{
//if Insert is not in the list
TsgDXFInsert * vInsert = FCADParams.Insert; //get next Insert
TsgDXFBlock * vBlock = (TsgDXFBlock *)(vInsert->Block); //get block of the new Insert
listboxBlocks->Items->AddObject(vBlock->Name, (TObject *)vInsert); //add new Insert to the list
/*
TODO: Place code here.
*/
...
}
...
}
...
}
please post questions to the forum or write to support@cadsofttools.com
-
- Posts: 4
- Joined: 25 Apr 2006, 11:01
- Location: Japan