Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing Child Dimension Style Overrides

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
195 Views, 9 Replies

Accessing Child Dimension Style Overrides

Anyone know how to access the dimstyle of the leader child dimension style
of the current dimension style? If anyone has a hint for a more general
access to child dimension style settings, that would be great also.

I have a note program that I have used that uses dimstyle and dimscale. I
need to modify it to find the leader dimstyle instead of the parent
dimstyle. Thanks.
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

The name of the child style? (strcat "parentstyle name" "$7")

-Jason

Doug Broad wrote:
>
> Anyone know how to access the dimstyle of the leader child dimension style
> of the current dimension style? If anyone has a hint for a more general
> access to child dimension style settings, that would be great also.
>
> I have a note program that I have used that uses dimstyle and dimscale. I
> need to modify it to find the leader dimstyle instead of the parent
> dimstyle. Thanks.
Message 3 of 10
Anonymous
in reply to: Anonymous

Thanks Jason. Thought it must be something simple.

"Jason Piercey" wrote in message
news:3B30AAF4.7DC5C7B4@atreng.com...
> The name of the child style? (strcat "parentstyle name" "$7")
>
> -Jason
>
> Doug Broad wrote:
> >
> > Anyone know how to access the dimstyle of the leader child dimension
style
> > of the current dimension style? If anyone has a hint for a more general
> > access to child dimension style settings, that would be great also.
> >
Message 4 of 10
Anonymous
in reply to: Anonymous

OK. Some problems.

In R14 where there is a parent dimension style named ARCH, and a child
leader style under ARCH:
(setq info (tblsearch "arch$7")) ;returns overrides for leader style.
(setq tstylinfo (tblsearch "style" (cdr(assoc 340 info))));returns the
text style for the child style.
That is fine and can be used easily to get a child dimension text style.

In AC2K, even though there though dimstyle ARCH$7 exists, it is evident
from looking at the table entries for "ARCH" and "ARCH$7" that they point to
the same text style entity name, even though the leader text style has been
set to a different text style. (Seems like the change between versions is a
step backwards).

The strange thing is that if DXFOUT is performed, the DIMSTYLE table entries
for ARCH and ARCH$7 in the DXF file point to different text style handles.

Since I don't want to have to write a DXF file and parse the results to
simply create notes in the current leader text style, I need some more
ideas. Thanks again.

"Jason Piercey" wrote in message
news:3B30AAF4.7DC5C7B4@atreng.com...
> The name of the child style? (strcat "parentstyle name" "$7")
>
> -Jason
>
Message 5 of 10
Anonymous
in reply to: Anonymous

Have you tested this with (tblobjname) instead of (tblsearch) ?

When I change the text stlye of my child style:

(entget (cdr (assoc 340 (entget (tblobjname "dimstyle"
"ParentStyle")))))

(entget (cdr (assoc 340 (entget (tblobjname "dimstyle" "ChildStyle")))))

for me return two seperate textstyle names. I am using A2K2.

-Jason

Doug Broad wrote:
>
> OK. Some problems.
>
> In R14 where there is a parent dimension style named ARCH, and a child
> leader style under ARCH:
> (setq info (tblsearch "arch$7")) ;returns overrides for leader style.
> (setq tstylinfo (tblsearch "style" (cdr(assoc 340 info))));returns the
> text style for the child style.
> That is fine and can be used easily to get a child dimension text style.
>
> In AC2K, even though there though dimstyle ARCH$7 exists, it is evident
> from looking at the table entries for "ARCH" and "ARCH$7" that they point to
> the same text style entity name, even though the leader text style has been
> set to a different text style. (Seems like the change between versions is a
> step backwards).
>
> The strange thing is that if DXFOUT is performed, the DIMSTYLE table entries
> for ARCH and ARCH$7 in the DXF file point to different text style handles.
>
> Since I don't want to have to write a DXF file and parse the results to
> simply create notes in the current leader text style, I need some more
> ideas. Thanks again.
>
> "Jason Piercey" wrote in message
> news:3B30AAF4.7DC5C7B4@atreng.com...
> > The name of the child style? (strcat "parentstyle name" "$7")
> >
> > -Jason
> >
Message 6 of 10
Anonymous
in reply to: Anonymous

Thanks. That worked. I am puzzled however why
(tblsearch "dimstyle" "childstyle") returns a different value than
(entget(tblobjname "dimstyle" "childstyle"))
The return value for the first is a longer list but the GC 340 for
the second gives the correct value for the child's text style.

Thanks again.


"Jason Piercey" wrote in message
news:3B30E5D2.A983C871@atreng.com...
> Have you tested this with (tblobjname) instead of (tblsearch) ?
>
> When I change the text stlye of my child style:
>
> (entget (cdr (assoc 340 (entget (tblobjname "dimstyle"
> "ParentStyle")))))
>
> (entget (cdr (assoc 340 (entget (tblobjname "dimstyle" "ChildStyle")))))
>
> for me return two seperate textstyle names. I am using A2K2.
>
> -Jason
>
Message 7 of 10
Anonymous
in reply to: Anonymous

Your welcome. Maybe someone else can shed some light on the differences
beween the two functions.

-Jason

Doug Broad wrote:
>
> Thanks. That worked. I am puzzled however why
> (tblsearch "dimstyle" "childstyle") returns a different value than
> (entget(tblobjname "dimstyle" "childstyle"))
> The return value for the first is a longer list but the GC 340 for
> the second gives the correct value for the child's text style.
>
> Thanks again.
>
> "Jason Piercey" wrote in message
> news:3B30E5D2.A983C871@atreng.com...
> > Have you tested this with (tblobjname) instead of (tblsearch) ?
> >
> > When I change the text stlye of my child style:
> >
> > (entget (cdr (assoc 340 (entget (tblobjname "dimstyle"
> > "ParentStyle")))))
> >
> > (entget (cdr (assoc 340 (entget (tblobjname "dimstyle" "ChildStyle")))))
> >
> > for me return two seperate textstyle names. I am using A2K2.
> >
> > -Jason
> >
Message 8 of 10
Anonymous
in reply to: Anonymous

Thanks again for your quick response.

"Jason Piercey" wrote in message
news:3B30EBD6.4EB81605@atreng.com...
> Your welcome. Maybe someone else can shed some light on the differences
> beween the two functions.
>
> -Jason
>
Message 9 of 10
Anonymous
in reply to: Anonymous

It is a bug in A2K.

See my messages on autodesk.autocad.customization:

"Dimstyles: do I wait AutoCAD 3000? (K.C. Jones!)"
Feb/03/00 - 15:59 (GMT)

"changing DIMSCALE in child dimension styles"

"To Gurus (and not), to Christal E.: dimstyles bug"


Regards.

Marc'Antonio Alessi

"Doug Broad" ha scritto nel messaggio
news:5A179CC8116BC574361F1019DD73F0C4@in.WebX.maYIadrTaRb...
> Thanks again for your quick response.
>
> "Jason Piercey" wrote in message
> news:3B30EBD6.4EB81605@atreng.com...
> > Your welcome. Maybe someone else can shed some light on the differences
> > beween the two functions.
> >
> > -Jason
> >
>
>
>
Message 10 of 10
Anonymous
in reply to: Anonymous

Thanks Marc'Antonio
Didn't think to search for the problem more than 3 months prior. BTW I had
heard so many problems, I kept using R14 until 1/2001. A2K has been a good
program for those who don't customize but a mixed bag of blessings and
curses for me. Best explanation I could find of my problem was thread
"Another dimstyle bug", Stephan Koster-Frank O 3/5/00.
While I am thankful AutoDesk maintains these newsgroups, I yearn for an
easier way to learn of bugs and workarounds. Thanks again.

Doug Broad.

"Marc'Antonio Alessi" wrote in message
news:8F4A8BD15C45E69FA6E9A98091D93E1D@in.WebX.maYIadrTaRb...
> It is a bug in A2K.
>
> See my messages on autodesk.autocad.customization:
>
> "Dimstyles: do I wait AutoCAD 3000? (K.C. Jones!)"
> Feb/03/00 - 15:59 (GMT)
>
> "changing DIMSCALE in child dimension styles"
>
> "To Gurus (and not), to Christal E.: dimstyles bug"
>
>
> Regards.
>
> Marc'Antonio Alessi
>
> "Doug Broad" ha scritto nel messaggio
> news:5A179CC8116BC574361F1019DD73F0C4@in.WebX.maYIadrTaRb...
> > Thanks again for your quick response.
> >
> > "Jason Piercey" wrote in message
> > news:3B30EBD6.4EB81605@atreng.com...
> > > Your welcome. Maybe someone else can shed some light on the
differences
> > > beween the two functions.
> > >
> > > -Jason
> > >
> >
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost