how to modify the dimension text angle?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2010-11-03
02:57 AM
- last edited on
‎2024-09-09
10:58 AM
by
Doreena Deng
‎2010-11-03
02:57 AM
hello
how to modify the dimension text angle?
we can get text value, but it is not modify below code..
help me.
thank you.
-------------------------------------------------------------------
AcElemHeadArray headArray;
long nSel = AcElement::GetSelection(&headArray, API_DimensionID);
for (int i = 0; i < nSel; i++)
{
AcElemHead head = headArray.GetAt(i);
AcElemDimension dimen;
if (!dimen.Get(head.GetIndex())) continue;
API_ElementMemo* memo = dimen.GetMemo();
API_DimElem** dimElems = memo->dimElems;
long nCount = dimen.GetNDimElem();
for(int j=0;j<nCount-1;j++){
((*dimElems)).note.noteAngle= 3.14;
dimen.Change();
}
}
how to modify the dimension text angle?
we can get text value, but it is not modify below code..
help me.
thank you.
-------------------------------------------------------------------
AcElemHeadArray headArray;
long nSel = AcElement::GetSelection(&headArray, API_DimensionID);
for (int i = 0; i < nSel; i++)
{
AcElemHead head = headArray.GetAt(i);
AcElemDimension dimen;
if (!dimen.Get(head.GetIndex())) continue;
API_ElementMemo* memo = dimen.GetMemo();
API_DimElem** dimElems = memo->dimElems;
long nCount = dimen.GetNDimElem();
for(int j=0;j<nCount-1;j++){
((*dimElems)).note.noteAngle= 3.14;
dimen.Change();
}
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2010-11-23 05:47 AM
‎2010-11-23
05:47 AM
Hi,
I have tried the same thing and unsuccessful. But if you change the text angle manually first then the program will work.
One other thing I found is if the dimension has mixture of static and non static nodes, the ACAPI_Element_Change function will remove all the static nodes.
Cheers,
Hoa
I have tried the same thing and unsuccessful. But if you change the text angle manually first then the program will work.
One other thing I found is if the dimension has mixture of static and non static nodes, the ACAPI_Element_Change function will remove all the static nodes.
Cheers,
Hoa