Hello,
I have a question.
I know there are 'cstLine', 'cstCircle', and so on.
By the way, I want to add 'Rectangle' like above.
Do you have 'cstRectangle'?
Let me know.
Thanks,
cstRectangle?
Moderators: SDS, support, admin
Re: cstRectangle?
Hello,
XML API doesn't have cstRectangle object. To add a rectangle, you should use a closed polyline:
Mikhail
XML API doesn't have cstRectangle object. To add a rectangle, you should use a closed polyline:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<cadsofttools version="2">
<add>
<cstLWPolyline>
<SubEntities>
<cstVertex Point="0,0"/>
<cstVertex Point="20,0"/>
<cstVertex Point="20,10"/>
<cstVertex Point="0,10"/>
<cstVertex Point="0,0"/>
</SubEntities>
</cstLWPolyline>
</add>
</cadsofttools>
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: cstRectangle?
Thanks,
I applied your way for blocks.
but I got a message like "Unsupported Child cstLWPolyline".
How do I have to do in this situation?
Let me know!
I applied your way for blocks.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<cadsofttools version="2">
<add>
<cstSectionBlocks Name="BLOCKS" >
<SubEntities>
<cstBlock name="BTrace" >
<SubEntities>
<cstLWPolyline>
<cstVertex point="0,0"/>
<cstVertex point="150,0"/>
<cstVertex point="150,100"/>
<cstVertex point="0,100"/>
<cstVertex point="0,0"/>
</cstLWPolyline>
</SubEntities>
</cstBlock>
</SubEntities>
</cstSectionBlocks>
</add>
</cadsofttools>
How do I have to do in this situation?
Let me know!
Re: cstRectangle?
Hello,
You will have to add <SubEntities> node before and after <cstVertex> nodes:
Mikhail
You will have to add <SubEntities> node before and after <cstVertex> nodes:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<cadsofttools version="2">
<add>
<cstSectionBlocks Name="BLOCKS">
<SubEntities>
<cstBlock name="BTrace">
<SubEntities>
<cstLWPolyline>
<SubEntities>
<cstVertex point="0,0"/>
<cstVertex point="150,0"/>
<cstVertex point="150,100"/>
<cstVertex point="0,100"/>
<cstVertex point="0,0"/>
</SubEntities>
</cstLWPolyline>
</SubEntities>
</cstBlock>
</SubEntities>
</cstSectionBlocks>
</add>
</cadsofttools>
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support