The equation is: 'QTY.'*"$PRPSHEET:"QTY Total"".
It comes out as: ='QTY.'*"3"...so somehow the equation is screwed up. If I just make the equation 'QTY' then the correct QTY per 1 show up.
Thanks and I have never made a macro so any help would be apreciated.Filipe Venceslau wrote:
Hi Nick!
I'm trying to do the exact same thing, and have run across the exact same problem, over and over. Tried so many work arounds and still can't get it to work. I think there might be some glitch here and we might have to wait for a fix or something, it doesn't seem to want to calculate anything with values coming from sheet/model/view properties for some reason.
I've contacted solidworks support, and they're working on this for me.
The only solution I've come across so far, was to add that same custom property for every part in the bom and calculate between custom prop in parts, but that is not flexible/dynamic, for that, you'd be better off just editing your formula in your BOM for every time your master quantity changed.
A quick easy fix, would probably be to just make a little macro that links that formula "QTY" * "MASTER.QTY" to your custom property. In other words, a macro that would just read your custom property get the number and actually write the formula in the BOM for you, so there would be no links there.
I have a post open with this query too, so keep an eye open. I might actually make this macro today, and I'm good with sharing.
Greetings!
Hi, Buddy,
It is feasible to use equation editor in Solidworks and reference sketch to do the total quantity calculation.
use one line in refer. sketch with its display dimension , which will be driven by the formula in equation editor.
then link the displayed dimension valued with the total quantity or the parameter with the same value in equation editor into custom properties.
Magic Logic, right?
My pleasure, Scott,
In fact, the Equation editor just like the tool of logic and/or math work , the lines in reference sketch just like interchanging/switching 'database', custom properties just like data terminal client acccess. in fact, use an attached construction line to work as an interchanging/switching 'database' is better.
I'm trying to do the exact same thing, and have run across the exact same problem, over and over. Tried so many work arounds and still can't get it to work. I think there might be some glitch here and we might have to wait for a fix or something, it doesn't seem to want to calculate anything with values coming from sheet/model/view properties for some reason.
I've contacted solidworks support, and they're working on this for me.
The only solution I've come across so far, was to add that same custom property for every part in the bom and calculate between custom prop in parts, but that is not flexible/dynamic, for that, you'd be better off just editing your formula in your BOM for every time your master quantity changed.
A quick easy fix, would probably be to just make a little macro that links that formula "QTY" * "MASTER.QTY" to your custom property. In other words, a macro that would just read your custom property get the number and actually write the formula in the BOM for you, so there would be no links there.
I have a post open with this query too, so keep an eye open. I might actually make this macro today, and I'm good with sharing.
Greetings!