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

map scale value

  • Thread starter Thread starter Bidaniele
  • Start date Start date

Bidaniele

Guest
You don't want me, but I wanted to know the best procedure to insert the scale value automatically into the cart.
I read a few messages but I couldn't figure out the right way for the 64-bit version of inventor 2014.
thanks to all
 
I thought I read that since 2014 the autosave macros no longer work, autoclose etc.... .
 
I confirm that they don't work anymore, or rather the macro of the scale still works, does not work the car, in fact if you go on the list of macros and run it from there it works....an automatic in half.
 
after 2 hours of trial I'll give the sponge... .

Why can't I enter the scale with ilogic in 2014?

attached 2 templates with 2 different scripts

Hi.
 

Attachments

as I wrote a few posts above following the instructions of this blog
to automatically insert the scale into the cartiglio there is the annoying problem that every time you create a drawing or a new sheet appears a window.

search I found the solution by writing this code with ilogic
Code:
dim odrawdoc as drawingdocument
odrawdoc = thisapplication.activedocument
custompropertyset = odrawdoc.propertysets.item("inventor user defined properties")
for i = 1 to odrawdoc.sheets.count
' make sure the desired property exists
try
      prop = custompropertyset.item("scale" + str(i))
catch
      ' assume error means not found
      custompropertyset.add("", "scale" + str(i))
end try
try
iproperties.value("custom", "scale" + str(i)) = odrawdoc.sheets.item(i).drawingviews.item(1).scalestring
catch
end try
next i
inventorvb.documentupdate()
turn it once and then go to the cartiglio and in "formatta testo" -> "properties customized - design" you will see that there is a new property called "scale 1", choose this and everything will work egregiamente

Hi.
 

Forum statistics

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

Members online

No members online now.
Back
Top