Hello, is it possible to fill in a part property field according to another, let me explain: when I create a laser cutter (ep3 sheet), I would like another field to pair the article code of the 3000x1500 ep 3 sheet (codified in our ERP). The best would be for this to be done automatically by indicating a formula in the property mask, otherwise it can be done by launching a macro.
Hello
To combine custom properties in a single field, you need to use $PRP:"PropertyName"
Example:
Thickness: 3mm
Description: Sheet $PRP: "Thickness" >>>>>>>> 3mm sheet metal
Otherwise with the Mycad tools you can use smartproperties which allows you to create custom properties by concatenating and only if the part is made of sheet metal for example.
Without "third-party tools" there is this for example:
- Piece in Cad Piece "Insert / Part... "
- then check "Custom properties"
disadvantages: (it's an "External Reference" to manage),
The properties descent from the "general (custom)" and not from "to the config"
Is it the part you want to codify or the sheet metal body?
Hello
olivier42, it doesn 't depend on the configue chosen when recording the piece before inserting it?
A.Leblanc,
from memory no, "room in room" with "properties" option brings down only "general",
and so it can work if you have library elements, or parts to make, which contain your good information to bring down...
This allows you to keep links (brand, reference, plan number) in a "clean" way
This principle is a bit similar to the "profile of const.soudée" what comes back into ownership comes from the "general"
Afterwards, they added a new option to "descend" the information at the level of the "welded bodies" of the "inserted part" which has two possible destinations: either the body (= line in the list of welded parts), or in the "target" part
Thank you for your answers, just to clarify my request, it is not a mechanically welded part nor "parts within a part", the goal is just to write in a "_MatierePremiere" chanps, automatically a code (created in the ERP) according to 2 other fields "_Matériau" and "_Epaisseur". This can be done via a formula in the property field, or via a macro.
2017-10-12_08_27_22-solidworks_premium_2016_x64_edition_-_piece1.png
$PRP:"_Matériau" $PRP:"_Epaisseur"mm
Thank you for your answer Yves.T, I agree with you I can create a field allowing to concatenate the material and the thickness however it does not allow to automatically point to the code the raw material sheet (3000x1500) which would be for example MP00016897
Hello
From what I understand, what you want to do looks like a nomenclature in the production sense of the term. I don't think Solidworks can guess on its own that if your material is 304 stainless steel in 1mm thickness then the raw material plate has the code MP00016897. You will either need a conversion table, to be read via a macro, or give it a link to the 3D carrying this code and there olivier42 's solution on the insertion of a part with recovery of the property seems coherent to me, if you don't want to manage the external reference you can delete this inserted part just after its insertion, the goal is just to recover the value of the _MatierePremiere property.
Kind regards
or, "freeze" the external reference, after insertion,
(allows you to switch back to "dynamic" if needed later)
Ok, thank you for your answers, I see the idea overall, on the other hand is it possible to do the same thing with welded construction: Retrieve the "profile name" (present in the list of welded part ex round Ø10) and put it in automatic in the custom properties for example in the "Designation" field of the part. This would be used in case only one type of profile is used in the room.
It seems to me that no, we can't pass on this information.
Because a profile is "a function" and not a "Piece within a Room"
But if it's just to end up with a "Parts List" table... " with info,
For the profiles, it's done automatically if "these files are well done" otherwise you'll have to complete them.
And for the "Part within Part" you will have to check in the insertion options "Properties / then Welded Part List"
And then put a table in a MEP
To do what you want,
you should create a library of "Config Room" for the different profiles, with configs only for the lengths.
And use the "Room in Room" method with the option "Properties / destination Personal properties."