-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Direct File Properties Manipulation #95
Comments
@rmcanany Can you explain me the usage of this part of code? I need to implement an SEDoc free for the SolidEdgeRequired = false version
|
Yes. That replaces a property formula with its value. For example %{Custom.Engineer} -> "FRED". |
Got it, I'll complete it tomorrow
Il mar 4 giu 2024, 17:27 rmcanany ***@***.***> ha scritto:
… Yes. That replaces a property formula with its value. For example
%{Custom.Engineer} -> "FRED".
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVFLLNQRFKC23WTX2PF4W3ZFXMGLAVCNFSM6AAAAABIYWPSHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXHAZDCMRRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I looked at the code more closely. A more accurate description is that it replaces all formulas in a string. Here's a better example: |
Completed with #96 |
System.Document Number Those properties need to be implemented cause they are in a different stream. |
OK. Sounds good. I'm going to try it out tomorrow. While you're in there could you add some sort of error message for index-reference properties? That's what I call them, anyway -- the ones with the |
That is blazing fast! Nice work! |
Implemented Project properties (ReadOnly at the moment) |
OK, cool. Should I close this issue, or leave it open for the upstream ReadOnly fix? |
Let's wait some days and see if it get quickly fixed |
When and if it get fixed I should be able to also update Material properties and potentially also FOA properties |
With pull request #105 I have completed the editing of Project Properties which works perfectly now. I have also revamped the PropertyEdit page, choosing from System to Custom will make the PropertyName a ComboBox or a TextBox depending on which is selected. The idea is to populate the combo with only usable properties Proper values are loaded at default with commit 976586d |
I'm able to change properties that are number, used in material properties, Density is not there so it is not possible with this tool. Is Hardware property manipulation of any interest? I can add it |
Property edit page buttons work and also restoring properties on load. |
That looks great! Especially the ComboBox feature. I might look at extending it to read a user's templates for custom properties. Speaking of custom properties, I only added the System and Custom flags because I noticed that SE allows a user to name a custom property using a name that's already in another stream. Not sure why they allow that. I believe I read somewhere that causes problems with Callouts, etc. I don't remember if it previously handled blank rows correctly. My code for that is convoluted. As I recall, it works by reading the form contents then populates a dictionary from that. I realized in working on the Edit Task List functionality that a better approach is to first update the dictionary, then redraw the form with updated contents. I need to do the same with Property Edit and Property Filter. As far as material properties go, I added that because changing the property Material does not automatically update density, facestyle, etc. I think I had to use Material Table functionality to do that. Anyway, it looks good. I might get a chance this weekend to play around with it. Thank you for all your work! |
The solution is to create a custom control that handle the property row, it will contains all the logic to get and set values. Main form will contain a list of them very easy to add , move and delete. The code would became much more compact and clear. And best of all you don't need all that dictionaries 😁 |
@farfilli First, it doesn't seem to obey the Second, I used |
@rmcanany I just had a quick test and the "Edit outside Solid Edge" seems to work correctly; if selected it uses the Process(FileName as string) method if not it uses the Process(SeDoc, Configuration....) method. The conflict error message appears when tasks of different types are selected; when a file is opened in Solid Edge there is no need for the structured storage method, also it could not work due to the file lock. Perhaps a method that automatically unchecks the direct edit in case of conflict could be implemented. About the folder question I'm not sure of what you mean, I have implemented a direct edit process method, it just work on the file list provided as usual |
@farfilli I can close this as complete, right? |
@farfilli |
I had a quick look and there are some refuses:
Do you think is needed for fing text as well? |
Updated the documentation. I had started to remove references to the Find string, but then wasn't positive about it. I don't think we need it. |
If you think Expressions is better than RegEx we can implement it for find string too. |
I do use RegEx occasionally, so would want to keep that. If you have time to add EX for Find strings, I wouldn't object, but I wouldn't object to waiting either. Your call. Anyway, this is all working as originally envisioned so I'm closing for now. |
I would put emphasis on instruction page about the performance of Property Direct Edit |
Will do. |
#92
The text was updated successfully, but these errors were encountered: