coco Posted November 30, 2022 Report Share Posted November 30, 2022 Hello, I am working on a function library and I want to package it with VIPM. On this side I have no problem, my problem appears when I want to remove the block diagram of my VI in order to protect my source code. I first tried to use the pre build actions calling a VI using scripting to remove the block diagram from my VIs (something like below). However when I do this I get this kind of error message. It seems that we cannot remove the block diagram before the build. My question is "How can we remove the block diagrams from a post build action ?" After some research, I came across this post in which Jim Kring says "This should be possible with a custom post-build action VI", however he does not explain how to achieve this. I was able to remove the block diagrams using the post install actions however my goal would be to remove them with a post build action. Quote Link to comment Share on other sites More sharing options...
LogMAN Posted November 30, 2022 Report Share Posted November 30, 2022 Cross-post: https://lavag.org/topic/22821-remove-block-diagram-after-build-with-vipm Please always include links when posting in multiple forums. This appears to be a potential bug in newer versions of VIPM. Here is a related topic: Quote Link to comment Share on other sites More sharing options...
coco Posted December 1, 2022 Author Report Share Posted December 1, 2022 Thanks, with the 2020.1 version it works. Quote Link to comment Share on other sites More sharing options...
Jim Kring Posted December 1, 2022 Report Share Posted December 1, 2022 Hi @coco. Thanks for posting your question. One possible solution would be to remove BD's in a post-build custom action. Another possible way would be to build your library into a PPL (removing BD's during the PPL build process) and then create a package from the PPL. Have you tried either of these approaches? -Jim Quote Link to comment Share on other sites More sharing options...
coco Posted December 2, 2022 Author Report Share Posted December 2, 2022 (edited) Hello Jim, Regarding the first solution, this is the method I wanted to use but I didn't find a way to do this, would you have a simple example of a project on which you would do this? For the second approach, I tried but I find with the same problem, an error telling me that the block diagram is missing. Thanks for your answer. Edited December 2, 2022 by coco Quote Link to comment Share on other sites More sharing options...
Jim Kring Posted December 3, 2022 Report Share Posted December 3, 2022 I’m not sure where a good example might be at the moment… Here’s what you would do: - unzip the VIP file to a folder, - load and re-save all the VIs without diagrams, - (re)zip the folder back into a VIP file (same name and location as passed into the post-build action VI) I’ll see if I can find an example… Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.