hello I have a question what if I wanted to patameter.Set() and inside set I want to put some build in parameter. For example I have a new parameter custom created and I want to insert some build int paramter (for example that wall base offset, if it was already set in the original parameter). You are putting your own values 4, "test comment"
Hi Danny, is it possible to do this with family-parameters? i would like to gain access to the value of the family parameter "cost" for example. i tried your version but it doesnt show me the value i typing in. its just blank. Your Example with "comments" worked for me. (My goal is it to update the family-parameter of a picked element with an exported Excel-sheet).
S D, Looking at your code I started to write back, but maybe much easier is to make a quick video. I hope this helps. Thank you for the question. th-cam.com/video/BCbw-qHLqGc/w-d-xo.html
@@DannyBentley I am not a subscriber, but have a question too. Is it possible to create new custom parameter for famly instance, and if so, how to do it? I know it's possible via Revit UI, bit i have no idea how to do it in C#. Specific example is doors. Currently, in Revit 2019, their swing orientation(Left or Right) isn't calculated by default, but set by "FacingFlipped" and "HandFlipped" boolean parameters. I have to grab em, compare them, and if they are equal, it means that door swing is left, else it's not. Such an easy task for experienced programmer, but not for me. Would appreciate any advice from you.
It seems like a very broad question, but dateTimePiker can be used in combination with a winform or WPF. If you use Visual Studio you should be able to drag and drop the dateTimePicker and wire it up to your program. If you give me a little bit more detail of what you hope to accomplish I might be able to be a bit more helpful.
I created two shared parameter to know the date of activities in the phase construction. example concrete and formwork... I've created a datetimepiker to make it easier to assign values to the user. and button "OK" in winform. My goal is to choose the date in the datetimepicker and clicking OK will save the value in the shared parameter
Renzo, I think this would work if you winform is wired to set your string parameters from dateTimePicker.Value when a user has selected the dates and hits Ok. I think the trick is to make sure that you convert your dateTimePicker to a string. I think that dateTimePicker.Value will do this. Please keep us updated on your progress.
Yes. I did it. I create a method that receives a string (public and static) then in the button I call the method by entering the string. String dateConcrete = ""; DateConcrete = dtpConcrete.value.tostring (); I call the method Commad.SetDate (dateConcrete); Exeption is about the transaction. I sent a message to you with the code of my project to your email. I hope you can help me. Thank you
Hi Joshua, Functions, sub-routines or procedures in some programming languages are usually called 'methods' in C# which is a term used in 'object oriented' programming generally. Like how USA calls futbol soccer. Hope this helps clear things up.
Hi Danny, Is it possible to change the parameters of a Workset, if so could you tell me how?
Thanks ! ☀
hello I have a question what if I wanted to patameter.Set() and inside set I want to put some build in parameter. For example I have a new parameter custom created and I want to insert some build int paramter (for example that wall base offset, if it was already set in the original parameter). You are putting your own values 4, "test comment"
Get the custom parameter value and send it to the other parameter.
parameter.Set(BuiltInParamter.WALL_BASE_OFFSET.AsString())
Hi Danny, is it possible to do this with family-parameters? i would like to gain access to the value of the family parameter "cost" for example. i tried your version but it doesnt show me the value i typing in. its just blank. Your Example with "comments" worked for me. (My goal is it to update the family-parameter of a picked element with an exported Excel-sheet).
S D, Looking at your code I started to write back, but maybe much easier is to make a quick video. I hope this helps. Thank you for the question.
th-cam.com/video/BCbw-qHLqGc/w-d-xo.html
@@DannyBentley I am not a subscriber, but have a question too. Is it possible to create new custom parameter for famly instance, and if so, how to do it? I know it's possible via Revit UI, bit i have no idea how to do it in C#.
Specific example is doors. Currently, in Revit 2019, their swing orientation(Left or Right) isn't calculated by default, but set by "FacingFlipped" and "HandFlipped" boolean parameters. I have to grab em, compare them, and if they are equal, it means that door swing is left, else it's not. Such an easy task for experienced programmer, but not for me. Would appreciate any advice from you.
Good Video, Any suggestions for set a value in a dateTimePicker?
It seems like a very broad question, but dateTimePiker can be used in combination with a winform or WPF. If you use Visual Studio you should be able to drag and drop the dateTimePicker and wire it up to your program. If you give me a little bit more detail of what you hope to accomplish I might be able to be a bit more helpful.
I created two shared parameter to know the date of activities in the phase construction. example concrete and formwork...
I've created a datetimepiker to make it easier to assign values to the user. and button "OK" in winform. My goal is to choose the date in the datetimepicker and clicking OK will save the value in the shared parameter
Renzo, I think this would work if you winform is wired to set your string parameters from dateTimePicker.Value when a user has selected the dates and hits Ok. I think the trick is to make sure that you convert your dateTimePicker to a string. I think that dateTimePicker.Value will do this. Please keep us updated on your progress.
Yes. I did it. I create a method that receives a string (public and static) then in the button I call the method by entering the string.
String dateConcrete = "";
DateConcrete = dtpConcrete.value.tostring ();
I call the method
Commad.SetDate (dateConcrete);
Exeption is about the transaction.
I sent a message to you with the code of my project to your email. I hope you can help me. Thank you
sure send it. When I have time I will look at it. danny_bentley@hotmail.com
is there any difference between a method and a subroutine?
Hi Joshua,
Functions, sub-routines or procedures in some programming languages are usually called 'methods' in C# which is a term used in 'object oriented' programming generally.
Like how USA calls futbol soccer.
Hope this helps clear things up.
Thank you !
Full Screen and zoom in. That's how you make coding videos. Nobody needs to see your desktop.