• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

Inner diameter - external diameter

  • Thread starter Thread starter leggera
  • Start date Start date

leggera

Guest
Hello.

sometimes it comes convenient in the picture share to report øi or øe.
Since by default the diameter symbol automatically puts it in comme possible to interpose the i or e ?
or should I give a new style of quota without diameter and from time to time add it?

Thank you.
1724155485239.webp
 
Hi.
I managed (by changing an old ilogic) to add the suffix øi or øe at a normal quota; I could not add only the text "i" or "e" on a "diameter" quota equipped with "ø"

if someone can remedy...
1724788223644.webp
'ilogic:

imports system.io
dim myarraylist as new arraylist
myarraylist.add("øi")
myarraylist.add("øe")

tipo_diametro = inputlistbox("seleziona il prefisso:", myarraylist, "", title := "", listname := "seleziona dalla lista")


' set a reference to the select set of the active document.
dim odoc as drawingdocument
dim odrawingdim as object
odoc = thisapplication.activedocument

while true
' find all selected occurrences and add them to an objectcollection.
dim odrawingdims as drawingdimension

selectdim = thisapplication.commandmanager.pick(selectionfilterenum.kdrawingdimensionfilter, "seleziona la quota in cui centrare il testo (esc per terminare)")
' if nothing gets selected then we're done
if isnothing(selectdim) then exit while
'****************************************
if typeof selectdim is generaldimension then 'reference to the selected dimension
dim odim as generaldimension=selectdim'refrence to the dimensiontext object
dim odimensiontext as dimensiontext=odim.text
'change dimension text


select case tipo_diametro
case "øi"
'odim.modelvalueoverridden = true
'odim.hidevalue = false
'odimensiontext.formattedtext= "øi" & "<dimensionvalue></dimensionvalue>"


'case "øi"
odimensiontext.formattedtext= "øi" & "<dimensionvalue></dimensionvalue>"

case "øe"
odimensiontext.formattedtext= "øe" & "<dimensionvalue></dimensionvalue>"
case "passante"
end select


end if


'******************************
end while
 
Hi.
ilogic rule is a good idea, but it seems a bit too much, I explain to me to click on the rule and activate it are more operation than to make you the two custom styles and select them, considering that you can do it even with more odds at a time if you use the copy setting of quotas. this is just an opinion not a criticism
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top