Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is some info from the XAML page I have I also have some information from the ironpython script Some of the functions specifically new

Here is some info from the XAML page I have
I also have some information from the ironpython script Some of the functions specifically new button's function def new_render_job(self):
try:
# Create a new Render Group object with no views, design options, or material links
view_names_str =""
design_options_str =""
families_str =""
mat_groups_str =""
render_job_name = view_names_str +"/"+ design_options_str +"/"+ families_str +"/"+ mat_groups_str
print(render_job_name)
# Attempt to create a new MyRenderJob instance
render_job_object = MyRenderJob(render_job_name)
render_job_object.Name = "New Render Job"
self.render_jobs_list.append(render_job_object)
self.UI_ListBox_RenderJobs.ItemsSource = self.render_jobs_list
self.UI_ListBox_RenderJobs.Items.Refresh()
except Exception as ex:
print("An error occurred while creating a new render job: {}".format(ex))
# Optionally, handle the error in a specific way, like logging or showing a message to the user -------------------------- This here was mostly a placeholder for the name, it comes out as /// This also is just some info about the init class ViewModel(my_WPF):
context_mode = 'show'
view_mode = 'singular'
context_transp =0
context_color = Color(255,255,255)
warning_color = Color(255,0,0)
count_views_total =1
count_view_current =1
def __init__(self):
path_xaml_file = xaml_path
wpf.LoadComponent(self, path_xaml_file)
self.FirstName = "Joe"
self.Surname = "Smith"
self.ChangeCommand = Command(self.change)
# self.SelectViewsCommand = Command(self.select_views)
self.SelectFamilyGroupsCommand = Command(self.select_family_group_func)
self.RenderJobsCommand = Command(self.render_jobs_func)
self.selected_family_groups =[]
self.selected_material_groups =[]
self.selected_views =[]
self.selected_view_names =[]
self.render_design_options =[]
self.render_design_options_names =[]
self.render_jobs_dict ={}
self.render_jobs_list = processed_render_jobs
self.selected_jobs =[]
self.render_views =[]
self.selected_render_groups =[]
self.RendercmbOptionList =[]
self.RenderQualityOptionList =[]
self.export_type ="PNG"
# self.Toggle = self.FindName("ToggleRenderGroupCreator")
# self.MyStackPanel = self.FindName("RenderGroupCreator")
# self.Toggle.Click += self.OnToggleStackPanel_Click
# self.Toggle = self.FindName("ToggleRenderGroupCreator")
# self.MyGrid = self.FindName("RenderGroupCreator")
# self.Toggle.Click += self.OnToggleGrid_Click
# #bindings
# self.OpenFamilyGroupsButton.Click += self.OnOpenFamilyGroups_Click

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions