Scaling Object

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Juanilogo
Posts: 21
Joined: Tue Apr 27, 2021 4:25 pm

Scaling Object

Post by Juanilogo »

Hello,
I am trying to Scale an Object with a very big scaling factor (0.001) but It doesn´t work. In the Report View Window I become the message " This object type cannot be scaled directly. Please use the clone method."

I Tried with .stl and .stp with the same results. How can I invoquee the Clone Method?

Best Regards
drmacro
Veteran
Posts: 9001
Joined: Sun Mar 02, 2014 4:35 pm

Re: Scaling Object

Post by drmacro »

It is one of the check boxes on the dialog:
Snip macro screenshot-7d30e7.png
Snip macro screenshot-7d30e7.png (78.96 KiB) Viewed 1414 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Scaling Object

Post by openBrain »

The Draft Clone is also available with the "blue sheep" icon.
Juanilogo
Posts: 21
Joined: Tue Apr 27, 2021 4:25 pm

Re: Scaling Object

Post by Juanilogo »

Hello,
i am doing it with this Method but also doesnt works.

He Creates an Cloned Object, and no error Message and The Object is empty, no information.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Scaling Object

Post by openBrain »

Give a file, we don't see your screen.
mario52
Veteran
Posts: 4698
Joined: Wed May 16, 2012 2:13 pm

Re: Scaling Object

Post by mario52 »

hi

try this macro Macro_CloneConvert Image easily ( not for .stl and .stp)

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Juanilogo
Posts: 21
Joined: Tue Apr 27, 2021 4:25 pm

Re: Scaling Object

Post by Juanilogo »

Hello all,
thank you for your Answers. I have research in the Problem and tested your suggestions:

Macro_CloneConvert i become this message:
08:41:45 Traceback (most recent call last):
08:41:45 File "C:/Users/lopezj/Documents/KEYENCE PPE Lokal/MacroFreeCAD_CloneConvert.FCMacro", line 831, in on_pushButton01_clicked
08:41:45 depart = time.clock() #### chrono begin
08:41:45 AttributeError: module 'time' has no attribute 'clock'

Normal Scaling at Draft, i can see the Object scaled in the preview but i become no scalation when I accept, and This Message:
<class 'ValueError'>: type must be 'DocumentObject[,subname[,x,y,z]]'
09:54:18 Unable to scale object: 087.0485.04_ASS_NullpunktWieQS2 - This object type cannot be scaled directly. Please use the clone method.
With Clone:
I can execute the Command, no error message when I try and have a Cloned Object in my Treeview but not in 3D. I can translate and see the cordinatesystem at translate but the object is not there cloned, just air.
mario52
Veteran
Posts: 4698
Joined: Wed May 16, 2012 2:13 pm

Re: Scaling Object

Post by mario52 »

hi

Macro_CloneConvert you have old version now "00.15 2020/06/06" the time is deleted,

install with AddonManager tray it

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply