App.Vector() versus Base.Vector() ?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Mark Szlazak
Posts: 439
Joined: Tue Apr 04, 2017 6:06 pm
Location: SF Bay Area, California

App.Vector() versus Base.Vector() ?

Post by Mark Szlazak »

I have been using App.Vector() instead of Base.Vector() in my scripts because it avoids importing Base. Is there any reasons to prefer using Base over App? I see a lot of examples with Base.Vector() so I was concerned about these two.
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: App.Vector() versus Base.Vector() ?

Post by yorik »

A lot of Base members are present in App too (Vector, Placement, Matrix,...). Not sure what was the original intent, but it is like this since the prehistory of FreeCAD... AFAIK there is no difference, the resulting object is the same.
Post Reply